Details
-
Bug
-
Resolution: Fixed
-
Medium
-
3.10.1rc1, 4.0.1rc1
-
None
Description
You will not be able to add relations if xmlblock is required and empty, you'll get a
The draft could not be stored. Required data is either missing or is invalid: * Xml: Content required
Patch (to make it work like the other datatypes):
Index: kernel/classes/datatypes/ezxmltext/handlers/input/ezsimplifiedxmlinput.php =================================================================== --- kernel/classes/datatypes/ezxmltext/handlers/input/ezsimplifiedxmlinput.php (revision 22151) +++ kernel/classes/datatypes/ezxmltext/handlers/input/ezsimplifiedxmlinput.php (working copy) @@ -108,8 +108,7 @@ return eZInputValidator::STATE_INVALID; } - $classAttribute = $contentObjectAttribute->contentClassAttribute(); - if ( $classAttribute->attribute( 'is_required' ) == true ) + if ( $contentObjectAttribute->validateIsRequired() ) { $root = $document->documentElement; if ( !$root->hasChildNodes() )
Also affects OE, this is fixed in 5.0.0rc2 rev 3134:
http://issues.ez.no/IssueView.php?Id=13402&activeItem=2