fix for label in radio

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5586 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-08-27 03:15:08 +00:00
parent e54fe6a523
commit 656247427f

View file

@ -760,7 +760,7 @@ class FormHelper extends AppHelper {
$fieldName = $this->field() . '_'.Inflector::underscore($optValue); $fieldName = $this->field() . '_'.Inflector::underscore($optValue);
$tagName = Inflector::camelize($fieldName); $tagName = Inflector::camelize($fieldName);
if($label) { if($label) {
$optTitle = sprintf($this->Html->tags['label'], $tagName, null, $optValue); $optTitle = sprintf($this->Html->tags['label'], $tagName, null, $optTitle);
} }
$out[] = sprintf($this->Html->tags['radio'], $this->model(), $this->field(), $tagName, $parsedOptions, $optTitle); $out[] = sprintf($this->Html->tags['radio'], $this->model(), $this->field(), $tagName, $parsedOptions, $optTitle);