When I create a Geshi field with the following settings...

  1. "Required" (checkbox = checked)
  2. 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.

  1. Create a node with that field on it.
  2. Enter something into the field.
  3. Save the node.
  4. Edit the node, but do nothing (no need to make any changes).
  5. Save the node. (You cannot actually save it.)
CommentFileSizeAuthor
#1 931226_required_multiple.patch790 bytessoxofaan

Comments

soxofaan’s picture

Status: Active » Needs review
StatusFileSize
new790 bytes

confirmed

should be fixed by attached patch

dmetzcher’s picture

Thank you! The patch solves the problem.

soxofaan’s picture

Status: Needs review » Patch (to be ported)

committed: http://drupal.org/cvs?commit=477362
thanks for testing

to be ported probably for the Drupal7 version

soxofaan’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
boombatower’s picture

This still relevant? If so this is probably a 1.0 release blocker.