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.

Comments

Flow1990 created an issue. See original summary.

josh.fabean’s picture

Thanks 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.

josh.fabean’s picture

Version: 2.2.0 » 2.2.x-dev
Status: Active » Fixed

Ok, 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.

josh.fabean’s picture

Status: Fixed » Closed (fixed)