Editing opening entites does not trigger batch process updating the instances

Created on 15 September 2023, over 1 year ago

Problem/Motivation

The opening form uses Drupal's batch_set() to update the opening instances.
https://git.drupalcode.org/project/bookable_calendar/-/blob/2.2.x/src/Fo...

But batch_set() is executing the batch process through a client browser request, and does not work when the submitting form also has a ?destination GET parameter. Editing any opening from the admin list has the destination parameter set though:

/admin/content/bookable-calendar/booking-calendar-opening/add <-- works, triggers batch

/admin/content/bookable-calendar/booking-calendar-opening/MY_ID/edit <-- works, triggers batch

/admin/content/bookable-calendar/booking-calendar-opening/MY_ID/edit?destination=/admin/content/bookable-calendar/bookable-calendar-opening <-- does never invoke bookable_calendar_process_opening_instances, reproducable error. This is the default URL though from the admin UI.

🐛 Bug report
Status

Active

Version

2.2

Component

Code

Created by

🇦🇹Austria hudri Austria

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024