Voting starts in March for the Drupal Association Board election.
The implementation of Drupal.CTools.dependent.inArray is incorrect: testing if undefined is in an array will always return true.
This is because the first test performed is
if(array[array.length] == search_term) and
array[array.length] is always undefined.
Attached is a patch to correct the behaviour.
This bug means that form elements which are dependent on radio button values will incorrectly default to displayed if the radio button group has no default value. This bug was previously reported here:
The patch in that report has been implemented in the 7.x branch but is not in the current 6.x release. It successfully works around the problem but does not fix the root cause, which this patch does.