From 409221434abf84039ad0732cfbdc2d9c8d81f8f9 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Tue, 13 Feb 2024 14:25:07 +0100 Subject: [PATCH] removes the checkbox for heimatadresse because it should not be changed by the user --- application/controllers/Cis/Profil.php | 4 ++-- .../Cis/Profil/ProfilComponents/EditAdresse.js | 9 ++------- 2 files changed, 4 insertions(+), 9 deletions(-) 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 { -
- - -
+