Type error when trying to access price alterators page

Created on 5 April 2025, 1 day ago

Problem/Motivation

Type error occurs when navigating to:
/admin/beehotel/pricealterator/alterators

TypeError: Drupal\Component\Utility\Html::escape(): Argument #1 ($text) must be of type string, null given, called in /var/www/html/web/core/lib/Drupal/Component/Render/FormattableMarkup.php on line 238 in Drupal\Component\Utility\Html::escape() (line 431 of core/lib/Drupal/Component/Utility/Html.php).

Steps to reproduce

On a Drupal 11 install with BEE Hotel, navigate to "BEE Hotel" on the "Manage" menu, then navigate to "Price Alterators" - the above error occurs.

Proposed resolution

This appears to be due to an argument with a value of 0 being interpreted as NULL. Converting to a string with strval seems to fix.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.24

Component

Code

Created by

🇬🇧United Kingdom mwrbg

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024