Problem/Motivation
Hello I try to use the token [booking_contact:party_size], but no value.
This is a bug in the bookable_calendar.module:
Line 341 - The token is defined as:
$info[‘tokens’][‘booking_contact’][‘party_size’]
Line 437 - But the switch case has a typo:
case ‘part_size’: // Missing the ‘y’!
Issue fork bookable_calendar-3567258
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
garvitasakhrani commentedI am working on it.
Comment #5
garvitasakhrani commentedThe issue with [booking_contact:party_size] token has been fixed.
The changes are present in issue fork branch 3567258-token-partysize-not.
Please review. Thanks!
Comment #6
josh.fabeanFixed in Bookable Calendar 3.0.0-rc1. The token handler now implements the correctly spelled `party_size` token and the notification preview and booking lifecycle tests cover `[booking_contact:party_size]`.
AI-Generated: Yes (OpenAI Codex helped draft this project-maintenance update, which was verified against the Bookable Calendar 3.0 branch.)
Comment #8
garvitasakhrani commentedThank you for reviewing the fix.
When you have a chance, could you please add contribution credit for this issue? Thank you!