Force deep copy of procedure logo

This commit is contained in:
Guillaume Lazzara 2016-09-02 17:10:55 +02:00
parent 1c5cd471cd
commit 6a6ac7872a

View file

@ -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