Skip to content

Commit

Permalink
tweak(Tinebase): allow to configure xtype for default fields in serve…
Browse files Browse the repository at this point in the history
…r config
  • Loading branch information
corneliusweiss committed Jan 11, 2024
1 parent 780024b commit 0d4b1ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tine20/Tinebase/js/widgets/form/FieldManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,9 @@ Tine.widgets.form.FieldManager = function() {
field.xtype = 'label';
break;
default:
field.xtype = this.specialTypeMap[fieldDefinition.specialType] || 'textfield';
field.xtype = field.xtype || this.specialTypeMap[fieldDefinition.specialType] || 'textfield';
field.emptyValue = field.emptyValue || (fieldDefinition.nullable ? null : '');

if (fieldDefinition.length) {
field.maxLength = fieldDefinition.length;
}
Expand Down

0 comments on commit 0d4b1ae

Please sign in to comment.