Error when booking multiple instances at once

Created on 6 February 2023, over 1 year ago
Updated 11 August 2023, 11 months ago

Hi
does the module already work properly with the VBO? I would like to use it to select several instances and then book them simultaneously.
When I added a vbo field in my view, selected a few items and selected the "Book Opening Instances" option, the following error message appeared:

The website encountered an unexpected error. Please try again later.
Error: Call to a member function getComponents() on null in Drupal\bookable_calendar_vbo_booking\Plugin\Action\BookOpeningInstance->getBundleForm() (line 121 of modules/contrib/bookable_calendar/modules/bookable_calendar_vbo_booking/src/Form/BookingContactMultipleForm.php).

Does anyone know if it's the fault of the module or my settings?

πŸ› Bug report
Status

Fixed

Version

2.2

Component

Code

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

Comments & Activities

  • Issue created by @Katarzyna_Starzynska
  • Assigned to josh.fabean
  • πŸ‡ΊπŸ‡ΈUnited States josh.fabean

    Hi, yes it should work as long as you're looking at Opening Instances when you do the action. The error you're describing seems like a Booking Contact Form Display bug. To get around this if you go to Structure > Bookable Calendar > Booking Contact > Manage Form Display, and just click "Save" it should fix it.

    It's trying to pull all the fields on the Booking Contact form and recreate that form is a VBO interface, and if you don't have a default form it doesn't know what to do. So what I need to figure out is how to make sure people have that form setup by default instead of needing to go and save it.

    Let me know if that work around fixes it, if it does then I'll look into how to stop people from running into that error.

  • Thank you for the information. It solved my problem

  • Status changed to Fixed 11 months ago
  • πŸ‡ΊπŸ‡ΈUnited States josh.fabean
  • Status changed to Fixed 11 months ago
  • πŸ‡ΊπŸ‡ΈUnited States josh.fabean
Production build 0.69.0 2024