From 4a9f72cefa34c370b463635d9ca7e681c8f22ce0 Mon Sep 17 00:00:00 2001 From: dho Date: Thu, 5 Oct 2006 08:50:04 +0000 Subject: [PATCH] Applied patch for ticket #1501, modified doc block of select function git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3599 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/view/helpers/form.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cake/libs/view/helpers/form.php b/cake/libs/view/helpers/form.php index 3cf7091db..bb47b3313 100644 --- a/cake/libs/view/helpers/form.php +++ b/cake/libs/view/helpers/form.php @@ -302,12 +302,11 @@ class FormHelper extends Helper { * Returns a formatted SELECT element. * * @param string $fieldName Name attribute of the SELECT - * @param array $optionElements Array of the OPTION elements (as 'value'=>'Text' pairs) to be used in the SELECT element + * @param array $options Array of the OPTION elements (as 'value'=>'Text' pairs) to be used in the SELECT element * @param mixed $selected Selected option - * @param array $selectAttr Array of HTML options for the opening SELECT element - * @param array $optionAttr Array of HTML options for the enclosed OPTION elements + * @param array $attributes * @param boolean $show_empty If true, the empty select option is shown - * @param boolean $return Whether this method should return a value + * @param boolean $showParents * @return string Formatted SELECT element */ function select($fieldName, $options = array(), $selected = null, $attributes = array(), $showEmpty = '', $showParents = null) { @@ -315,7 +314,7 @@ class FormHelper extends Helper { $attributes = $this->domId($attributes); if ($this->tagIsInvalid()) { - $htmlAttributes = $this->Html->addClass($htmlAttributes, 'form_error'); + $attributes = $this->Html->addClass($attributes, 'form_error'); } if (!isset($selected)) {