mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Update FormHelper.php
disabled multiple checkbox input should not generate an enabled hidden input, as it leads to saving empty data upon submission -> carrying the disabled attribute to the hidden input prevents this
This commit is contained in:
parent
1a799b07b3
commit
abb0c7cb9d
1 changed files with 2 additions and 1 deletions
|
@ -2069,7 +2069,8 @@ class FormHelper extends AppHelper {
|
|||
'id' => $attributes['id'] . ($style ? '' : '_'),
|
||||
'secure' => false,
|
||||
'form' => isset($attributes['form']) ? $attributes['form'] : null,
|
||||
'name' => $attributes['name']
|
||||
'name' => $attributes['name'],
|
||||
'disabled' => $attributes['disabled']
|
||||
);
|
||||
$select[] = $this->hidden(null, $hiddenAttributes);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue