silverstripe-itemsetfield
silverstripe-itemsetfield copied to clipboard
Prevent field from creating orphaned objects (with just this field set) ...
...when creating a new object.
It'd probably be better to disable the field until an ID is set, to prevent the user from getting confused when actions they perform aren't executed.
That's the reason for the additional change to saveInto, as if an item is being added to the db, the record should not be written until the form overall is saved.
On 24 Mar 2012 12:34, "Andrew Short" < [email protected]> wrote:
It'd probably be better to disable the field until an ID is set, to prevent the user from getting confused when actions they perform aren't executed.
Reply to this email directly or view it on GitHub:
https://github.com/ajshort/silverstripe-itemsetfield/pull/24#issuecomment-4673337