Adding fix for #2481 fixes Form::label() $tagName does not run through domId()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4904 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-04-29 02:58:01 +00:00
parent 527a2e6bcd
commit e91a15e4e2

View file

@ -314,7 +314,7 @@ class FormHelper extends AppHelper {
if (strpos($tagName, '/') !== false || strpos($tagName, '.') !== false) {
$tagName = Inflector::camelize(preg_replace('/[\/\.]+/', '_', $tagName));
}
return $this->output(sprintf($this->Html->tags['label'], $tagName, $this->_parseAttributes($attributes), $text));
return $this->output(sprintf($this->Html->tags['label'], $this->domId($tagName), $this->_parseAttributes($attributes), $text));
}
/**
* Will display all the fields passed in an array expects tagName as an array key