6.0.0-beta1
7/7/25

[#787] UI VarRenderer Logic Bug
Summary UI VarRenderer Logic Bug
Queue Horde Framework Packages
Type Bug
State Resolved
Priority 1. Low
Owners
Requester mbydalek (at) mobilemini (dot) com
Created 11/08/2004 (7546 days ago)
Due
Updated 11/09/2004 (7545 days ago)
Assigned
Resolved 11/09/2004 (7545 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/09/2004 07:36:20 PM Chuck Hagenbuch Comment #3
State ⇒ Resolved
Reply to this comment
Fixed, thanks.
11/08/2004 10:44:02 PM mbydalek (at) mobilemini (dot) com Comment #2
New Attachment: html.php.patch Download
Reply to this comment
Patch to fix 0 == false error.
11/08/2004 10:43:19 PM mbydalek (at) mobilemini (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ UI VarRenderer Logic Bug
Queue ⇒ Horde Framework Packages
Reply to this comment
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.

Saved Queries