Force deep copy of procedure logo
This commit is contained in:
parent
1c5cd471cd
commit
6a6ac7872a
1 changed files with 2 additions and 0 deletions
|
@ -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 = self.deep_clone(include: [:types_de_piece_justificative, :types_de_champ, :module_api_carto, :mail_templates])
|
||||||
procedure.archived = false
|
procedure.archived = false
|
||||||
procedure.published = false
|
procedure.published = false
|
||||||
|
procedure.logo_secure_token = nil
|
||||||
|
procedure.remote_logo_url = self.logo_url
|
||||||
return procedure if procedure.save
|
return procedure if procedure.save
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue