Explorar o código

Fix Data_Source getColDefault value

Piotr Labudda %!s(int64=11) %!d(string=hai) anos
pai
achega
6f79874212
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      SE/se-lib/Data_Source.php

+ 1 - 1
SE/se-lib/Data_Source.php

@@ -75,7 +75,7 @@ class Data_Source {
 	}
 	}
 
 
 	public function getColDefault($fieldName) {
 	public function getColDefault($fieldName) {
-		$fldType = V::get($fieldName, '', $this->_types);
+		$fldType = V::get($fieldName, '', $this->_col_types);
 		if (!$fldType) return '';
 		if (!$fldType) return '';
 		return V::get('default', '', $fldType);
 		return V::get('default', '', $fldType);
 	}
 	}