dev/event#58 Ensure custom data is not saved to template's row
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 19 Jun 2021 22:43:58 +0000 (10:43 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 19 Jun 2021 22:43:58 +0000 (10:43 +1200)
commite9fc038fde80e8d4e5b9cccf6c84c7167dc36f68
treeb50793dcedf4dd14534dd0e83d778f8896b96f3c
parentb271f0da5cb58ac07c54b6c6572f8556609caffd
dev/event#58 Ensure custom data is not saved to template's row

This ensures than when we are copying (implicity a create-new-action) we do not
update an existing row in the custom data table by explicity unsetting the
id in the copy function. This has been bouncey behaviour because
the formatting for form purposes relies on form type formatting and yet
for save purposes it's not really fit for purpose. Although a bit
hacky this approach should be robust & avoids a re-write on the form
CRM/Event/BAO/Event.php