mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
fixes #5829, form helper using proper method reference for parseAttributes. A patch would have been nice, but some ticket submitters prefer not to make much effort.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7902 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
c49f213fcf
commit
4dd105d415
1 changed files with 3 additions and 3 deletions
|
@ -234,7 +234,7 @@ class FormHelper extends AppHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->setEntity($model . '.', true);
|
$this->setEntity($model . '.', true);
|
||||||
return $this->output(sprintf($this->Html->tags['form'], $this->Html->_parseAttributes($htmlAttributes, null, ''))) . $append;
|
return $this->output(sprintf($this->Html->tags['form'], $this->_parseAttributes($htmlAttributes, null, ''))) . $append;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Closes an HTML form, cleans up values set by FormHelper::create(), and writes hidden
|
* Closes an HTML form, cleans up values set by FormHelper::create(), and writes hidden
|
||||||
|
@ -1695,13 +1695,13 @@ class FormHelper extends AppHelper {
|
||||||
$label = $this->label(null, $title, $label);
|
$label = $this->label(null, $title, $label);
|
||||||
$item = sprintf(
|
$item = sprintf(
|
||||||
$this->Html->tags['checkboxmultiple'], $name,
|
$this->Html->tags['checkboxmultiple'], $name,
|
||||||
$this->Html->_parseAttributes($htmlOptions)
|
$this->_parseAttributes($htmlOptions)
|
||||||
);
|
);
|
||||||
$select[] = $this->Html->div($attributes['class'], $item . $label);
|
$select[] = $this->Html->div($attributes['class'], $item . $label);
|
||||||
} else {
|
} else {
|
||||||
$select[] = sprintf(
|
$select[] = sprintf(
|
||||||
$this->Html->tags['selectoption'],
|
$this->Html->tags['selectoption'],
|
||||||
$name, $this->Html->_parseAttributes($htmlOptions), $title
|
$name, $this->_parseAttributes($htmlOptions), $title
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue