mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
527a2e6bcd
commit
e91a15e4e2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue