mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-30 20:51:22 +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"]) { | ||||
| 		$attributes = $_POST["attributes_version"]; | ||||
| 		foreach($attributes as $attrdefid=>$attribute) { | ||||
| 			if(null === ($ret = $controller->callHook('validateAttribute', $attrdef, $attribute))) { | ||||
| 			$attrdef = $dms->getAttributeDefinition($attrdefid); | ||||
| 			if(null === ($ret = $controller->callHook('validateAttribute', $attrdef, $attribute))) { | ||||
| 			if($attribute) { | ||||
| 				switch($attrdef->getType()) { | ||||
| 				case SeedDMS_Core_AttributeDefinition::type_date: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann