mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
e54fe6a523
commit
656247427f
1 changed files with 2 additions and 2 deletions
|
@ -576,7 +576,7 @@ class FormHelper extends AppHelper {
|
|||
$labelText = $label['text'];
|
||||
unset($label['text']);
|
||||
}
|
||||
|
||||
|
||||
$labelAttributes = am($labelAttributes, $label);
|
||||
} else {
|
||||
$labelText = $label;
|
||||
|
@ -760,7 +760,7 @@ class FormHelper extends AppHelper {
|
|||
$fieldName = $this->field() . '_'.Inflector::underscore($optValue);
|
||||
$tagName = Inflector::camelize($fieldName);
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue