8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Textarea TV with Auto Grow and Resizable enabled resets these settings when the TV is reloaded or reopened.
MODX version: 3.1.2-pl
The text was updated successfully, but these errors were encountered:
The problem seems to be the function paramValueIsTrue() that was added with #16553 (in MODX 3.1.0):
paramValueIsTrue()
revolution/core/src/Revolution/modX.php
Lines 402 to 416 in ba4e3d4
Because in_array('false',[true]); seems to return true in PHP, the function returns true when the value is the string 'false'.
in_array('false',[true]);
true
'false'
Sorry, something went wrong.
The solution is probably to use the third parameter ($strict) of the in_array function and to change the line
$strict
in_array
Line 412 in ba4e3d4
to this instead:
if (isset($params[$key]) && in_array($params[$key], ['true', true, '1', 1], true)) {
No branches or pull requests
Bug Report
Summary
The Textarea TV with Auto Grow and Resizable enabled resets these settings when the TV is reloaded or reopened.
Steps to Reproduce
Environment
MODX version: 3.1.2-pl
The text was updated successfully, but these errors were encountered: