Making optiongroup elements follow the escape parameter.

Tests added.
Fixes #1191
This commit is contained in:
mark_story 2010-10-13 21:59:53 -04:00
parent 3f2109f3c3
commit 6529e0e2b4
2 changed files with 42 additions and 0 deletions

View file

@ -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 {