Merge branch 'pu/2013.03/modelconfig-hr'
[tine20] / tine20 / Tinebase / ModelConfiguration.php
index 22908c5..2bf9c2c 100644 (file)
@@ -697,8 +697,8 @@ class Tinebase_ModelConfiguration {
             }
 
             if ($fieldDef['type'] == 'virtual') {
-                $fieldDef['type'] = $fieldDef['config']['type'];
-                unset($fieldDef['config']['type']);
+                $fieldDef = $fieldDef['config'];
+                $fieldDef['sortable'] = FALSE;
                 $this->_virtualFields[] = $fieldDef;
                 continue;
             }