dnadesign / silverstripe-elemental-userforms

Adds a new element for usersforms
BSD 3-Clause "New" or "Revised" License
9 stars 16 forks source link

ENH Duplicate child fields on duplicate #54

Closed emteknetnz closed 3 years ago

emteknetnz commented 3 years ago

Issue https://github.com/silverstripe/silverstripe-elemental/issues/512

This makes it so that elemental userforms behave the same as regular userforms on duplicate i.e. duplicate child fields too

Fields is defined as a has_many on UserFormFieldEditorExtension extension on the the UserForms trait

Cannot use private static $cascade_duplicates = ['Fields']; as that conflicts with private static $cascade_duplicates = false; on the UserForm trait

emteknetnz commented 3 years ago

Not required