Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
6.x-3.x-dev
Component:
content.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Dec 2009 at 09:00 UTC
Updated:
12 Jan 2010 at 09:10 UTC
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
Comment #1
markus_petrux commentedOk, 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