From e91a15e4e23f37b1b88a2dc2df3f435a83f3f0e4 Mon Sep 17 00:00:00 2001 From: phpnut Date: Sun, 29 Apr 2007 02:58:01 +0000 Subject: [PATCH] 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 --- cake/libs/view/helpers/form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/view/helpers/form.php b/cake/libs/view/helpers/form.php index f5bee3247..50450a1f9 100644 --- a/cake/libs/view/helpers/form.php +++ b/cake/libs/view/helpers/form.php @@ -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