Closed (fixed)
Project:
Drupal For Firebug
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Aug 2008 at 22:12 UTC
Updated:
1 Oct 2008 at 05:01 UTC
The forms tab, showing forms on the current page, will miss the fist option of 'radios' type elements.
Simples way to check this is to edit your own account and to check the "Status" element. It should have two options: "[0] => Blocked" and "[1] => Active", but in Firebug you can see only "[1] => Active".
Not sure, but this could be an issue only with options that are specified as a map?
Comments
Comment #1
mariuss commentedNoticed that these missing options will only happen if the key is 0 (zero).
In the above example, the Status option array is probably something like:
array(0 => 'Blocked', 1 => 'Active')if this instead was:
array('b' => 'Blocked', 'a' => 'Active')then all the options would be displayed.
Comment #2
populist commentedThis was fun to resolve. There was some hard to track down issues related to variable types. Turns out PHP believes that (0 != 'random_string) is false, but ((string) 0 != 'random string') is true.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.