mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing DOM ID's for HtmlHelper::selectTag() (Ticket #1847)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4256 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
b8c51fee44
commit
b5309bb017
1 changed files with 1 additions and 1 deletions
|
@ -629,7 +629,7 @@ class HtmlHelper extends AppHelper {
|
|||
* @param boolean $show_empty If true, the empty select option is shown
|
||||
* @return string Formatted SELECT element
|
||||
*/
|
||||
function selectTag($fieldName, $optionElements, $selected = null, $selectAttr = null, $optionAttr = null, $showEmpty = true) {
|
||||
function selectTag($fieldName, $optionElements, $selected = array(), $selectAttr = array(), $optionAttr = array(), $showEmpty = true) {
|
||||
$this->setFormTag($fieldName);
|
||||
if ($this->tagIsInvalid()) {
|
||||
if (isset($selectAttr['class']) && trim($selectAttr['class']) != "") {
|
||||
|
|
Loading…
Add table
Reference in a new issue