CodeIgniter icon indicating copy to clipboard operation
CodeIgniter copied to clipboard

form_helper: form_dropdown function array to string conversion

Open aanbar opened this issue 13 years ago • 0 comments

Hello,

In form_helper, form_dropdown when you pass an array contains (options, name, selected, extra) it assumes that extra is an array, then down the road it uses extra as a string.

If we could get this changed to be like other functions where extra can be an array or string it would be better

$extra = is_array($extra) ? _attributes_to_string($extra) : $extra;

aanbar avatar Sep 28 '13 12:09 aanbar