mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	fix nasty error when validating attribute in a hook
This commit is contained in:
		
							parent
							
								
									1d62de5213
								
							
						
					
					
						commit
						d7f1e899ba
					
				|  | @ -249,8 +249,8 @@ default: | ||||||
| 	if(isset($_POST["attributes_version"]) && $_POST["attributes_version"]) { | 	if(isset($_POST["attributes_version"]) && $_POST["attributes_version"]) { | ||||||
| 		$attributes = $_POST["attributes_version"]; | 		$attributes = $_POST["attributes_version"]; | ||||||
| 		foreach($attributes as $attrdefid=>$attribute) { | 		foreach($attributes as $attrdefid=>$attribute) { | ||||||
| 			if(null === ($ret = $controller->callHook('validateAttribute', $attrdef, $attribute))) { |  | ||||||
| 			$attrdef = $dms->getAttributeDefinition($attrdefid); | 			$attrdef = $dms->getAttributeDefinition($attrdefid); | ||||||
|  | 			if(null === ($ret = $controller->callHook('validateAttribute', $attrdef, $attribute))) { | ||||||
| 			if($attribute) { | 			if($attribute) { | ||||||
| 				switch($attrdef->getType()) { | 				switch($attrdef->getType()) { | ||||||
| 				case SeedDMS_Core_AttributeDefinition::type_date: | 				case SeedDMS_Core_AttributeDefinition::type_date: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann