LSldapObject : Added attribute validation on generated depended attribute

This commit is contained in:
Benjamin Renard 2011-09-22 11:35:27 +02:00
parent 33b21ad860
commit 878d52bcd5

View file

@ -523,6 +523,10 @@ class LSldapObject {
LSerror :: addErrorCode('LSattribute_07',$this -> attrs[$dependAttr] -> getLabel());
$retval = false;
}
elseif (!$this -> validateAttrData($LSform,$this -> attrs[$dependAttr])) {
LSerror :: addErrorCode('LSattribute_08',$this -> attrs[$dependAttr] -> getLabel());
$retval = false;
}
}
else {
LSerror :: addErrorCode('LSattribute_06',$this -> attrs[$dependAttr] -> getLabel());