diff --git a/bin/backend/controls/userData/UserData.js b/bin/backend/controls/userData/UserData.js index 06d011d655cc1be2421a02b0a05c1282904e834f..00f101348cf6b4022e355e86dad7ac2fe8e8f01e 100644 --- a/bin/backend/controls/userData/UserData.js +++ b/bin/backend/controls/userData/UserData.js @@ -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'); } },