|
|
@@ -75,12 +75,9 @@ class Data_Source {
|
|
|
}
|
|
|
|
|
|
public function getColDefault($fieldName) {
|
|
|
- if (array_key_exists($fieldName, $this->_types)) {
|
|
|
- if (!empty($this->_types[$fieldName]['default'])) {
|
|
|
- return $this->_types[$fieldName]['default'];
|
|
|
- }
|
|
|
- }
|
|
|
- return '';
|
|
|
+ $fldType = V::get($fieldName, '', $this->_types);
|
|
|
+ if (!$fldType) return '';
|
|
|
+ return V::get('default', '', $fldType);
|
|
|
}
|
|
|
|
|
|
function setVirtualCols($cols) {
|