Skip to content

Commit a94a0f6

Browse files
authored
Fix Textarea TV Input Options (#16747)
### What does it do? Makes array checking strict in the method used for evaluating boolean option types. ### Why is it needed? Autogrow and Resizable option settings were not displaying/saving correctly. I have no idea how/why this issue did not crop up when these options were added originally, not too long ago :-/ ### How to test Create a textarea TV and change these input options to verify they persist as expected. ### Related issue(s)/PR(s) Resolves #16746
1 parent e44827e commit a94a0f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/Revolution/modX.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ public static function toQueryString(array $parameters = [], $numPrefix = '', $a
409409
*/
410410
public function paramValueIsTrue(array $params, $key, bool $returnBoolAsString = false)
411411
{
412-
if (isset($params[$key]) && in_array($params[$key], ['true', true, '1', 1])) {
412+
if (isset($params[$key]) && in_array($params[$key], ['true', true, '1', 1], true)) {
413413
return $returnBoolAsString ? 'true' : true ;
414414
}
415415
return $returnBoolAsString ? 'false' : false ;

0 commit comments

Comments
 (0)