When I create a Geshi field with the following settings...
- "Required" (checkbox = checked)
- Number of values = "Unlimited"
...and then try to edit a node with a Geshi field, I cannot save the node because each of the fields (since it's unlimited) is now required and another field is automatically added when editing. With other fields, such as a simple CCK text field, allowing multiple values only requires that one of the fields on the form for that field have a value.
I should also note that if I add a bunch of Geshi fields to a node and then go back to edit that node, I can remove all the text in each of the fields except one but I cannot then save the node. With other CCK fields (such as a simple text field), removing a value in one of the fields is fine as long as there is still at least one field populated with a value.
To reproduce, create a Geshi field with the two settings above and do the following.
- Create a node with that field on it.
- Enter something into the field.
- Save the node.
- Edit the node, but do nothing (no need to make any changes).
- Save the node. (You cannot actually save it.)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 931226_required_multiple.patch | 790 bytes | soxofaan |
Comments
Comment #1
soxofaan commentedconfirmed
should be fixed by attached patch
Comment #2
dmetzcher commentedThank you! The patch solves the problem.
Comment #3
soxofaan commentedcommitted: http://drupal.org/cvs?commit=477362
thanks for testing
to be ported probably for the Drupal7 version
Comment #4
soxofaan commentedComment #5
boombatower commentedThis still relevant? If so this is probably a 1.0 release blocker.