about $validation.attributes

about $validation.attributes

Wednesday 10 January 2007 8:22:12 am - 1 reply

Author Message

Claudia Kosny

Friday 12 January 2007 9:42:18 am

Hi Patrice

The last time I had such a problem this was caused by a small bug in one of the datatypes. If you are not afraid of changing a tiny bit of php code, determine the datatype of the attribute that is causing the problem and open the file /kernel/classes/datatypes/ez<name of datatype>/ez<name of datatype>type.php. There make sure that the function validateObjectAttributeHTTPInput returns EZ_INPUT_VALIDATOR_STATE_ACCEPTED if there is no input and $contentObjectAttribute->validateIsRequired() is false.

Alternatively you could write an extension which updates only the attributes of your choice (as this way you can circumvent the standard validation and instead use your own), but this requires much more PHP knowledge and a bit of insight into the internal workings of eZ.

Claudia

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.