mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Allow a boolean value for the disabled attribute in function radio.
This commit is contained in:
parent
02912b6eeb
commit
7dfe72708f
1 changed files with 1 additions and 1 deletions
|
@ -1303,7 +1303,7 @@ class FormHelper extends AppHelper {
|
|||
if (isset($value) && $optValue == $value) {
|
||||
$optionsHere['checked'] = 'checked';
|
||||
}
|
||||
if (!empty($disabled) && in_array($optValue, $disabled)) {
|
||||
if (!empty($disabled) && (is_bool($disabled) || in_array($optValue, $disabled))) {
|
||||
$optionsHere['disabled'] = true;
|
||||
}
|
||||
$tagName = Inflector::camelize(
|
||||
|
|
Loading…
Reference in a new issue