Skip to content

Commit

Permalink
Merge branch 'pu/cw/derfaultXType' into '2024.11'
Browse files Browse the repository at this point in the history
tweak(Tinebase): allow to configure xtype for default fields in server config

See merge request tine20/tine20!4742
  • Loading branch information
corneliusweiss committed Jan 11, 2024
2 parents 003ea9c + 0d4b1ae commit 2c30cb2
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 2c30cb2

Please sign in to comment.