fixes #5829, form helper using proper method reference for parseAttributes. A patch would have been nice, but some ticket submitters prefer not to make much effort.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7902 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-12-01 19:39:40 +00:00
parent c49f213fcf
commit 4dd105d415

View file

@ -234,7 +234,7 @@ class FormHelper extends AppHelper {
} }
$this->setEntity($model . '.', true); $this->setEntity($model . '.', true);
return $this->output(sprintf($this->Html->tags['form'], $this->Html->_parseAttributes($htmlAttributes, null, ''))) . $append; return $this->output(sprintf($this->Html->tags['form'], $this->_parseAttributes($htmlAttributes, null, ''))) . $append;
} }
/** /**
* Closes an HTML form, cleans up values set by FormHelper::create(), and writes hidden * Closes an HTML form, cleans up values set by FormHelper::create(), and writes hidden
@ -1695,13 +1695,13 @@ class FormHelper extends AppHelper {
$label = $this->label(null, $title, $label); $label = $this->label(null, $title, $label);
$item = sprintf( $item = sprintf(
$this->Html->tags['checkboxmultiple'], $name, $this->Html->tags['checkboxmultiple'], $name,
$this->Html->_parseAttributes($htmlOptions) $this->_parseAttributes($htmlOptions)
); );
$select[] = $this->Html->div($attributes['class'], $item . $label); $select[] = $this->Html->div($attributes['class'], $item . $label);
} else { } else {
$select[] = sprintf( $select[] = sprintf(
$this->Html->tags['selectoption'], $this->Html->tags['selectoption'],
$name, $this->Html->_parseAttributes($htmlOptions), $title $name, $this->_parseAttributes($htmlOptions), $title
); );
} }
} }