{"action":"closed","issue":{"url":"https://api.github.com/repos/yiisoft/yii/issues/3407","labels_url":"https://api.github.com/repos/yiisoft/yii/issues/3407/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii/issues/3407/comments","events_url":"https://api.github.com/repos/yiisoft/yii/issues/3407/events","html_url":"https://github.com/yiisoft/yii/issues/3407","id":35587301,"number":3407,"title":"CHtml adding \"[]\" to tag name, if select is multiple, in dropDownList and activeDropDownList","user":{"login":"lobzenko","id":2557329,"avatar_url":"https://avatars.githubusercontent.com/u/2557329?v=3","gravatar_id":"","url":"https://api.github.com/users/lobzenko","html_url":"https://github.com/lobzenko","followers_url":"https://api.github.com/users/lobzenko/followers","following_url":"https://api.github.com/users/lobzenko/following{/other_user}","gists_url":"https://api.github.com/users/lobzenko/gists{/gist_id}","starred_url":"https://api.github.com/users/lobzenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lobzenko/subscriptions","organizations_url":"https://api.github.com/users/lobzenko/orgs","repos_url":"https://api.github.com/users/lobzenko/repos","events_url":"https://api.github.com/users/lobzenko/events{/privacy}","received_events_url":"https://api.github.com/users/lobzenko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii/labels/status:to%20be%20verified","name":"status:to be verified","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/yiisoft/yii/milestones/9","html_url":"https://github.com/yiisoft/yii/milestones/1.1.17","labels_url":"https://api.github.com/repos/yiisoft/yii/milestones/9/labels","id":399649,"number":9,"title":"1.1.17","description":"","creator":{"login":"samdark","id":47294,"avatar_url":"https://avatars.githubusercontent.com/u/47294?v=3","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":140,"state":"open","created_at":"2013-08-12T10:14:01Z","updated_at":"2016-01-08T14:34:29Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2014-06-12T14:13:12Z","updated_at":"2016-01-08T14:34:29Z","closed_at":"2016-01-08T14:34:29Z","body":"It not work for this example:\r\n\r\n< select multiple=\"multiple\" name=\"PRub[Parents][][id_parent]\" id=\"PRub_Parents_id_parent\"  >\r\n\r\nCHtml::dropDownList('PRub[Parents][][id_parent]'... generate name PRub[Parents][][id_parent][]\r\n\r\nI suggest replace code in functions:\r\n\r\nif(substr($htmlOptions['name'],-2)!=='[]')\r\n\t$htmlOptions['name'].='[]';\r\nto \r\n\r\nif (strpos($htmlOptions['name'], '[]')===false)\r\n\t$htmlOptions['name'].='[]';"}}