Hello,

It seems that for list (Integer) fields, there is no "- None -" option. That behaviour is correct for required fields, but not non-required fields. What's strange though, is that when selecting a Default Value (in the field settings screen), the "- None -" option displays properly.

Thanks for looking into this, though I think it's strange that no one has reported this yet.

Comments

bdu’s picture

Status: Active » Postponed

This does not look to reproduce on 7.10. This is what I did:

  1. Create a type
  2. add a list(integer) field
  3. made it a 'select list'
  4. provide two key|label lines in the Allowed values list
  5. add content of the new type, and in the list there are three options: - None - and the two specified ones.

Can you check if this still reproduces on 7.10?

nagiek’s picture

Status: Postponed » Active

True, it's not reproducible for content, but reproducible on other entities.

See #1399134: List fields cannot be unset when attached to profile2.. I'm not sure whether the bug is Drupal or Profile2 though.

nagiek’s picture

.