mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-08 04:22:40 +00:00
Making optiongroup elements follow the escape parameter.
Tests added. Fixes #1191
This commit is contained in:
parent
3f2109f3c3
commit
6529e0e2b4
2 changed files with 42 additions and 0 deletions
|
@ -2002,6 +2002,7 @@ class FormHelper extends AppHelper {
|
|||
));
|
||||
|
||||
if (!empty($name)) {
|
||||
$name = $attributes['escape'] ? h($name) : $name;
|
||||
if ($attributes['style'] === 'checkbox') {
|
||||
$select[] = sprintf($this->Html->tags['fieldsetstart'], $name);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue