Skip to content

Commit

Permalink
fix(Addressbook): show all contacting properties
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusweiss authored and pschuele committed Mar 19, 2024
1 parent f4f0880 commit c4cd470
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tine20/Addressbook/js/ContactEditDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,15 +254,14 @@ Tine.Addressbook.ContactEditDialog = Ext.extend(Tine.widgets.dialog.EditDialog,
flex: 1,
recordClass: this.recordClass,
fields: _.sortBy(_.filter(this.recordClass.getModelConfiguration().fields, field => {
// @TODO filter by systemCFDefinition.model once available
return field.fieldName.match(/^(tel|email)/) && !field.disabled;
return field.specialType?.match(/^Addressbook_Model_ContactProperties_(Phone|Email)/) && !field.disabled;
}), ['uiconfig.order'])
}), contactPropertiesGrid({
flex: 1,
recordClass: this.recordClass,
fields: _.sortBy(_.filter(this.recordClass.getModelConfiguration().fields,field => {
// @TODO filter by systemCFDefinition.model once available
return field.fieldName.match(/^(url|matrix)/) && !field.disabled;
return field.specialType?.match(/^Addressbook_Model_ContactProperties_(Url|InstantMessenger)/) && !field.disabled;

}).concat(
_.find(this.recordClass.getModelConfiguration().fields, {fieldName: 'language'})
), ['uiconfig.order'])
Expand Down

0 comments on commit c4cd470

Please sign in to comment.