From 6a6ac7872a27a4b75ebcfae6f735ae0782da78b9 Mon Sep 17 00:00:00 2001 From: Guillaume Lazzara Date: Fri, 2 Sep 2016 17:10:55 +0200 Subject: [PATCH] Force deep copy of procedure logo --- app/models/procedure.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/procedure.rb b/app/models/procedure.rb index a99204e3a..317f70f44 100644 --- a/app/models/procedure.rb +++ b/app/models/procedure.rb @@ -90,6 +90,8 @@ class Procedure < ActiveRecord::Base procedure = self.deep_clone(include: [:types_de_piece_justificative, :types_de_champ, :module_api_carto, :mail_templates]) procedure.archived = false procedure.published = false + procedure.logo_secure_token = nil + procedure.remote_logo_url = self.logo_url return procedure if procedure.save end