Editor\Join: Empty child records
Editor\Join: Empty child records
How can I avoid adding an "empty" child record when the relevant form field is left blank?
e.g. parent id joined to child id
child table has "id", "extra stuff"
post "create" form with empty "extra stuff" field
result: new child record comprising "id", ""
e.g. parent id joined to child id
child table has "id", "extra stuff"
post "create" form with empty "extra stuff" field
result: new child record comprising "id", ""
This discussion has been closed.
Replies
[code]
->set( isset($_POST['data']) && $_POST['data']['myData'] ? true : false )
[/code]
Or something to that effect :-).
Allan