Closed emteknetnz closed 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
Fields
UserFormFieldEditorExtension
UserForms
Cannot use private static $cascade_duplicates = ['Fields']; as that conflicts with private static $cascade_duplicates = false; on the UserForm trait
private static $cascade_duplicates = ['Fields'];
private static $cascade_duplicates = false;
UserForm
Not required
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 onUserFormFieldEditorExtension
extension on the theUserForms
traitCannot use
private static $cascade_duplicates = ['Fields'];
as that conflicts withprivate static $cascade_duplicates = false;
on theUserForm
trait