Skip to content

fix: include conditionally displaying title and description#941

Merged
JohnVillalovos merged 3 commits intoLibreBooking:developfrom
JensWendt:patch-2
Feb 3, 2026
Merged

fix: include conditionally displaying title and description#941
JohnVillalovos merged 3 commits intoLibreBooking:developfrom
JensWendt:patch-2

Conversation

@JensWendt
Copy link
Contributor

with no title or description there was a PHP (I assume 8+) warning being output directly into the JavaScript code, which creates an unescaped line break that causes a JS syntax error. Now neither Title nor Description can be NULL.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Prevents PHP warnings (from NULL title/description) from being emitted into the generated JavaScript inside the reservation PDF template, which previously could introduce an unescaped line break and break JS parsing.

Changes:

  • Wrap ReservationTitle output in a Smarty conditional before applying unescape/escape modifiers.
  • Wrap Description output in a Smarty conditional before applying unescape/escape modifiers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

with no title or description there was a PHP (I assume 8+) warning being output directly into the JavaScript code, which creates an unescaped line break that causes a JS syntax error.
Now neither Title nor Description can be NULL.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@JohnVillalovos JohnVillalovos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @JensWendt

I will squash this down to one commit.

@JohnVillalovos JohnVillalovos merged commit 46d3069 into LibreBooking:develop Feb 3, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants