correctif(dossier.en_construction): ETQ usager, je souhaite pouvoir modifier un dossier ayant des repetition ayant des enfants
This commit is contained in:
parent
87237896c5
commit
c52c0e4573
1 changed files with 4 additions and 1 deletions
|
@ -172,6 +172,9 @@ module DossierCloneConcern
|
||||||
champs_to_remove += diff[:removed]
|
champs_to_remove += diff[:removed]
|
||||||
champs_to_remove
|
champs_to_remove
|
||||||
.filter { !_1.child? || !champs_to_remove.include?(_1.parent) }
|
.filter { !_1.child? || !champs_to_remove.include?(_1.parent) }
|
||||||
.each(&:destroy!)
|
.each do |champ|
|
||||||
|
champ.rows.flatten.each(&:destroy!) if champ.repetition?
|
||||||
|
champ.destroy!
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue