diff --git a/entity/Contact_entity/entityfields/address_id/valueProcess.js b/entity/Contact_entity/entityfields/address_id/valueProcess.js index 75bc8b76629a25525a31db6b5de14a517a9a403a..a1fd89ea38d52b2df99d15d9a6848c68fb6ecc90 100644 --- a/entity/Contact_entity/entityfields/address_id/valueProcess.js +++ b/entity/Contact_entity/entityfields/address_id/valueProcess.js @@ -8,6 +8,9 @@ if (vars.get("$this.value") === null || vars.get("$this.value") === "" || vars.g .onPersonValueChange(vars.get("$field.ORGANISATION_ID")); // If a possible standard addrss was found it should get applied to the field. - if (possibleStandardAddressID !== null) + // The secondary condition is specifically for a new "private" person, because + // it has placeholder address with the id "0<35 whitespaces>" (whitspaces due + // to char36 and uuid format). + if (possibleStandardAddressID !== null && possibleStandardAddressID.trim() !== "0") result.string(possibleStandardAddressID); -} \ No newline at end of file +}