Skip to content
Code-Schnipsel Gruppen Projekte
Commit 7530fd29 erstellt von Patrick Müller's avatar Patrick Müller
Dateien durchsuchen

refactor: UserData set contact mail / person even if empty in source data

Übergeordneter ef87dda3
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -300,9 +300,9 @@ define('package/quiqqer/erp/bin/backend/controls/userData/UserData', [
this.$AddressDisplay.value = this.$getAddressLabel();
if (this.getAttribute('isCommercial')) {
if (checkVal(this.getAttribute('contactPerson'))) {
if (this.getAttribute('contactPerson') !== false) {
this.$ContactPerson.value = this.getAttribute('contactPerson');
} else if (checkVal(this.getAttribute('contact_person'))) {
} else if (this.getAttribute('contact_person') !== false) {
this.$ContactPerson.value = this.getAttribute('contact_person');
}
......@@ -311,9 +311,9 @@ define('package/quiqqer/erp/bin/backend/controls/userData/UserData', [
this.$RowContactPerson.setStyle('display', 'none');
}
if (checkVal(this.getAttribute('contactEmail'))) {
if (this.getAttribute('contactEmail') !== false) {
this.$ContactEmail.value = this.getAttribute('contactEmail');
} else if (checkVal(this.getAttribute('contact_email'))) {
} else if (this.getAttribute('contact_email') !== false) {
this.$ContactEmail.value = this.getAttribute('contact_email');
}
},
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren