Skip to content

Commit

Permalink
fix(Tinebase/UserProfile): n_given and n_family should not be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
pschuele committed Sep 12, 2024
1 parent 409d3dd commit e013c40
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tine20/Tinebase/js/UserProfilePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Tine.Tinebase.UserProfilePanel = Ext.extend(Ext.Panel, {
const userProfile = userProfileInfo.userProfile;
const readableFields = userProfileInfo.readableFields;
const updateableFields = userProfileInfo.updateableFields;
const shouldNotBeBlankFields = ['n_given', 'n_family'];

const adbI18n = new Locale.Gettext();
adbI18n.textdomain('Addressbook');
Expand All @@ -67,8 +68,9 @@ Tine.Tinebase.UserProfilePanel = Ext.extend(Ext.Panel, {
name: fieldName,
value: userProfile[fieldName],
fieldLabel: adbI18n._hidden(fieldDefinition.label),
readOnly: updateableFields.indexOf(fieldName) < 0
})
readOnly: updateableFields.indexOf(fieldName) < 0,
allowBlank: shouldNotBeBlankFields.indexOf(fieldName) < 0
});

const idx = this.items.findIndex('name',fieldName);
if (idx > -1) {
Expand Down

0 comments on commit e013c40

Please sign in to comment.