Changeset 2842
- Timestamp:
- 07/11/08 12:50:20 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Copix_3_0_X/utils/copix/field/CopixFieldContainer.class.php
r2839 r2842 29 29 public function setLabel ($pLabel) { 30 30 $this->_label = $pLabel; 31 } 32 33 public function getFormId () { 34 return $this->_formId; 31 35 } 32 36 … … 134 138 public function check () { 135 139 $this->_errors = true; 140 if ($this->getParam('require',false) && ($this->_localValue == null)) { 141 $this->_errors = new CopixErrorObject('Champs obligatoire'); 142 } 136 143 if ($this->_objField->getValidators () != null) { 137 $this->_errors = $this->_objField->getValidators ()->check ($this->_localValue); 144 if ($this->_localValue != null) { 145 $this->_errors = $this->_objField->getValidators ()->check ($this->_localValue); 146 } 138 147 } 139 148 return $this->_errors;
