[Tickets #787] NEW: UI VarRenderer Logic Bug

bugs at bugs.horde.org bugs at bugs.horde.org
Mon Nov 8 14:43:21 PST 2004


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=787
-----------------------------------------------------------------------
 Ticket     | 787
 Created By | mbydalek at mobilemini.com
 Summary    | UI VarRenderer Logic Bug
 Queue      | Horde Framework Packages
 State      | Unconfirmed
 Priority   | 1. Low
 Type       | Bug
 Owners     | 
-----------------------------------------------------------------------


mbydalek at mobilemini.com (2004-11-08 14:43) wrote:

I came across a problem where using the 'prompt' => true option for enum
Form types where if you submitted a form, and "-- select --" was
highlighted, when the form came back, the first viable option was selected,
rather than still being "-- select --"

The hard part was that it sometimes worked, and othertimes didn't, but it
came down to a logic error.  Basically if the $values array contained a "0",
it thought that the var was selected because in php 'false' == 0, so I had
to do a === to get it to work right.

It'll make more sense once you see the patch.

Thanks.




More information about the bugs mailing list