kieranbarnes Independent PHP, WordPress & CubeCart Programmer

ADOdb’s GetMenu() function moreAttr bug

Posted on August 2, 2007

I'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

$rs_lookup_current_status->GetMenu2('current_status_id',$default_str=$rs->fields['current_status_id'],$moreAttr='readonly="readonly"')

to output something like

<select name="current_status_id" readonly="readonly"><option value=""></option>

<option value='4'>Cancelled</option>

etc...

But it outputs the following

<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?


Related posts

  1. Nicer Pagination with ADOdb
    Or should that be Nicr? To follow in an annoying theme. Olavo Alexandrino wrote a...
  2. WordPress function remove_menu_page
    WordPress is now being used more and more for a full site CMS and the...
  3. Preventing MSN Messenger Spam in Pidgin
    I use Pidgin as my instant messenger application. Mainly because it allows me to chat...

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.