Skip to content

Commit

Permalink
Revert "text(Addressbook/AddressPanel): improve var naming"
Browse files Browse the repository at this point in the history
This reverts commit 2f55ae8.
  • Loading branch information
pschuele committed Nov 6, 2024
1 parent d1d6823 commit 7f7aa76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tine20/Addressbook/js/AddressPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ const getAddressPanels = () => {
const app = Tine.Tinebase.appMgr.get('Addressbook');
const recordClass = Tine.Tinebase.data.RecordMgr.get('Addressbook', 'Contact');

const adrPanelFields = _.sortBy(_.filter(recordClass.getModelConfiguration().fields, (field) => {
const adrFields = _.sortBy(_.filter(recordClass.getModelConfiguration().fields, (field) => {
return field.type === 'record' && _.get(field, 'config.recordClassName') == 'Addressbook_Model_ContactProperties_Address'
}), (field) => {return _.get(field, 'uiconfig.order')});

return adrPanelFields.map((field) => {
return adrFields.map((field) => {
const preferredCheckbox = new Ext.form.Checkbox({
hideLabel: false,
fieldLabel: app.i18n._('Preferred Address'),
Expand Down

0 comments on commit 7f7aa76

Please sign in to comment.