CCK3 implements a method to validate required fields when these are configured for multiple values. This validation is not performed by FAPI because it would require all items in the multiple field widget, as implemented by CCK itself with the "Add more items" button (not by the widgets such as optionwidgets). CCK2 does not verify this, but CCK3 includes code at nodeapi('validate') time to ensure a multiple values field that is required contains, at least, one element filled in.

Ok, so the problem is that this validation should not be enforced when the user does not have permission to edit the field, which is consistent with FAPI behavior in such cases.

Patch coming...

Comments

markus_petrux’s picture

Status: Active » Fixed

Ok, this is just a one-liner patch to include an invocation to content_access('edit') to ensure the current user has access to edit the field just before enforcing the 'required' attribute of multiple value fields managed by CCK itself.

Committed to CCK3.

http://drupal.org/cvs?commit=307692

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.