Problem/Motivation
After deleting Opening Instances, booking contact previouly attached can not be deleted properly.
Route : admin/content/bookable-calendar/booking-contact/1/delete
Error message : "The timestamp must be numeric." at /drupal-test/web/core/lib/Drupal/Component/Datetime/DateTimePlus.php line 201
Steps to reproduce
Create calendar opening.
Create booking contact and attach booking instance previously created.
Delete booking instance.
Try to delete booking contact attached to deleted booking instance.
| Comment | File | Size | Author |
|---|---|---|---|
| Capture d’écran 2023-01-12 à 16.24.34.png | 58.36 KB | flow1990 |
Comments
Comment #2
josh.fabeanThanks for the report. Do you think a proper solution would be message of "Deleting this instance would also delete 10 Contacts that are associated with this, are you sure" with a confirm form? This would just delete them all at the same time.
I can also look into fixing this bug so you don't get contacts that are stuck in a bad state forever.
Comment #4
josh.fabeanOk, the issue was we are formatting the title of the page based on the date, now if the date is not there it would error out. Added an extra if check on the date before trying to format it as a date. Pushed to latest 2.2.x dev.
Comment #5
josh.fabean