Fixed
Project:
Modal
Version:
5.1.11
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Apr 2026 at 18:05 UTC
Updated:
25 Apr 2026 at 14:02 UTC
Jump to comment: Most recent
This un-attributed commit https://git.drupalcode.org/project/modal_page/-/commit/01a90c0abc4eda1ac... capitalizes boolean and null values in the JavaScript files. While that's confirming to standards for PHP files, in JavaScript it makes the values appear to be undefined variables instead of boolean or null values.

Load any page that links to a modal where the site is running modal_page 5.1.11
Revert the offending commit, release an updated version of the 5.1.x. Maybe improve testing to identify this issue and check the functionality of the JS.
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot 2026-04-20 at 1.59.48 PM.png | 295.79 KB | dhansen |
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
renatog commentedNice catch @dhansen
Thank you so much for that
Comment #5
renatog commentedcommitted in the dev branch
I'll generate a new release as soon as possible
Really appreciated your contribution
Comment #7
renatog commentedReleased the new version with this fix
https://www.drupal.org/project/modal_page/releases/5.1.12
Added a public thanks for @dhansen in the release notes
Appreciated
Comment #8
renatog commented