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’!

Command icon 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

flow1990 created an issue. See original summary.

garvitasakhrani made their first commit to this issue’s fork.

garvitasakhrani’s picture

Assigned: Unassigned » garvitasakhrani

I am working on it.

garvitasakhrani’s picture

Assigned: garvitasakhrani » Unassigned
Status: Active » Needs review

The 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!

josh.fabean’s picture

Status: Needs review » Fixed

Fixed 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.)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

garvitasakhrani’s picture

Thank you for reviewing the fix.
When you have a chance, could you please add contribution credit for this issue? Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.