diff --git a/application/controllers/Cis/Profil.php b/application/controllers/Cis/Profil.php index d90054fae..da5b62298 100755 --- a/application/controllers/Cis/Profil.php +++ b/application/controllers/Cis/Profil.php @@ -557,8 +557,8 @@ class Profil extends Auth_Controller private function getAdressenInfo($pid){ $adresse_res = null; if ( - - isSuccess($adresse_res = $this->AdresseModel->addSelect(["adresse_id","strasse", "tbl_adressentyp.bezeichnung as typ", "plz", "ort","zustelladresse","heimatadresse"])) && + + isSuccess($adresse_res = $this->AdresseModel->addSelect(["adresse_id","strasse", "tbl_adressentyp.bezeichnung as typ", "plz", "ort","zustelladresse"])) && isSuccess($adresse_res = $this->AdresseModel->addOrder("zustelladresse", "DESC")) && isSuccess($adresse_res = $this->AdresseModel->addJoin("tbl_adressentyp", "typ=adressentyp_kurzbz")) ) { diff --git a/public/js/components/Cis/Profil/ProfilComponents/EditAdresse.js b/public/js/components/Cis/Profil/ProfilComponents/EditAdresse.js index 584aa25b3..e8878a886 100755 --- a/public/js/components/Cis/Profil/ProfilComponents/EditAdresse.js +++ b/public/js/components/Cis/Profil/ProfilComponents/EditAdresse.js @@ -14,7 +14,7 @@ export default { methods:{ updateValue: function(event,bind){ //? sets the value of a property to null when an empty string is entered to keep the isChanged function valid - if(bind ==="zustelladresse" || bind ==="heimatadresse"){ + if(bind ==="zustelladresse" ){ this.data[bind] = event.target.checked; }else{ this.data[bind] = event.target.value === "" ? null : event.target.value; @@ -63,12 +63,7 @@ export default { -
- - -
+