LSldapObject : Added attribute validation on generated depended attribute
authorBenjamin Renard <brenard@easter-eggs.com>
Thu, 22 Sep 2011 09:35:27 +0000 (11:35 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Thu, 22 Sep 2011 09:35:27 +0000 (11:35 +0200)
public_html/includes/class/class.LSldapObject.php

index 7051676..d6f6e93 100644 (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());