cancel
Showing results for 
Search instead for 
Did you mean: 

Mandatory-enforce not overridable according to modelSchema.xsd

ipirat
Champ in-the-making
Champ in-the-making
I think, I came across something one could call a bug, or, at least unexpected behaviour:
When defining the mandatory attribute on a model property, one can use "enforced=true/false"
to control the enforcement of the "mandatory" constraint.

When overriding the mandatory attribute, you cant specify "enforced", as mandatory is "just" aboolean when overriding.



   <xs:complexType name="property">
      …
         <xs:element name="mandatory" maxOccurs="1" minOccurs="0" type="dd:mandatoryDef" />
      …
   </xs:complexType>

   <xs:complexType name="propertyOverride">
      …
         <xs:element name="mandatory" maxOccurs="1" minOccurs="0" type="xs:boolean" />
      …
   </xs:complexType>



I think, this should be overridable…



10 REPLIES 10

kaynezhang
World-Class Innovator
World-Class Innovator
It seems the bug is fixed in alfresco 5.0