ADOdb’s GetMenu() function moreAttr bug
August 2nd, 2007I’m sure there is a bug with ADOdb’s GetMenu() function
The documentation suggests ‘use $moreAttr to add additional attributes such as javascript or styles.’
So I would expect something like
1 | $rs_lookup_current_status->GetMenu2('current_status_id',$default_str=$rs->fields['current_status_id'],$moreAttr='readonly="readonly"') |
to output something like
1 2 3 | <select name="current_status_id" readonly="readonly"><option value=""></option> <option value='4'>Cancelled</option> |
etc…
But it outputs the following
1 2 3 4 5 | <select name="current_status_id" > <option value="readonly="readonly""></option> <option value='4'>Cancelled</option> |
Which is wierd.
It seems to put the moreAttr value into the first option tag and not in the select tag where it should be.
Has anyone else seen this behavior?
| Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo |
Was this post useful to you? Let me know, buy me a beer!
Alternatively, if you're feeling impecunious, you may like to subscribe to my RSS feed, or see other articles in the HTML, CSS, AJAX, PHP category.