i have a text.module select list widget for a field. the field is not required, which means that there is a blank space above the list of accepted values. if a node already has a value set for this field, though, i cannot set the value back to null. i can switch between accepted values just fine.

sorry if this is unclear

Comments

jyamada1’s picture

Title: unrequired text select list does allow change to <none> » text select list does not allow change to null
Priority: Normal » Critical
jyamada1’s picture

Category: bug » feature
Priority: Critical » Normal

ok, figured this one out.

turns out that the accepted values list needs to have a null value there in order to accept a null value. this is only quasi-intuitive in that the actual behavior should probably be that the blank line in a non-required field should be able to set the field null again. at least a note of this should be made in the help text of the accepted values list.

 | 
1|num1
2|num2
mfredrickson’s picture

Category: feature » bug

I can reproduce this bug, and I think it is a bug, not a feature request/documentation shortcoming.

The widget should handle dropping in the NULL option, users should not have to add a line with just a pipe character. Far too subtle.

yched’s picture

Status: Active » Fixed

Indeed - should be fixed now (all branches)
Thanks for reporting

Anonymous’s picture

Status: Fixed » Closed (fixed)