deal with virtual fields in recorddisplaypanel
[tine20] / tine20 / Tinebase / js / widgets / display / RecordDisplayPanel.js
index 1ff6cfa..066be07 100644 (file)
@@ -138,6 +138,11 @@ Tine.widgets.display.RecordDisplayPanel = Ext.extend(Ext.ux.display.DisplayPanel
                     fieldLabel: this.app.i18n._hidden(fieldDefinition.label || fieldDefinition.fieldName),
                 };
 
+            if (fieldType === 'virtual') {
+                field.fieldLabel = fieldDefinition.config.label;
+                fieldType = fieldDefinition.config.type || 'textfield';
+            }
+
             if (fieldsToExclude.indexOf(fieldDefinition.fieldName) < 0 && ! fieldDefinition.shy) {
                 if (fieldType == 'text') {
                     Ext.apply(field, {