Skip to content

Commit

Permalink
fix(Tinebase) custom keyfields are not displayed in editDialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusweiss committed Jun 12, 2024
1 parent 20a6231 commit 9743b45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tine20/Tinebase/js/widgets/keyfield/ComboBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ Tine.Tinebase.widgets.keyfield.ComboBox = Ext.extend(Ext.form.ComboBox, {

// get keyField config
this.keyFieldConfig = this.app.getRegistry().get('config')[this.keyFieldName];
if (!this.keyFieldConfig) {
const cf = _.find(this.app.getRegistry().get('customfields'), { name: this.keyFieldName });
this.keyFieldConfig = cf?.definition.keyFieldConfig;
}

var definition = this.keyFieldConfig.definition,
options = definition && definition.options || {};
Expand Down

0 comments on commit 9743b45

Please sign in to comment.