diff --git a/application/controllers/Cis/ProfilUpdate.php b/application/controllers/Cis/ProfilUpdate.php index a16248a3b..6b42356dc 100755 --- a/application/controllers/Cis/ProfilUpdate.php +++ b/application/controllers/Cis/ProfilUpdate.php @@ -268,7 +268,7 @@ class ProfilUpdate extends Auth_Controller if(isset($id)) $whereClause['id'] = $id; $res= $this->ProfilUpdateModel->getProfilUpdatesWhere($whereClause); - + $res = hasData($res) ? getData($res) : null; echo json_encode($res); } @@ -314,6 +314,10 @@ class ProfilUpdate extends Auth_Controller //? loops over all updateRequests from a user to validate if the new request is valid $res = $this->ProfilUpdateModel->getProfilUpdatesWhere(["uid"=>$this->uid]); + if(isError($res)){ + show_error("Error occured while querying the profil update requests of UID: ".$uid); + } + $res = hasData($res)? getData($res):null; //? the user cannot delete a zustelladresse/kontakt if( isset($payload->delete) && $payload->{$identifier=="kontakt_id"? "zustellung":"zustelladresse"}){ diff --git a/application/models/person/Profil_update_model.php b/application/models/person/Profil_update_model.php index c2304d069..a49fc4c24 100755 --- a/application/models/person/Profil_update_model.php +++ b/application/models/person/Profil_update_model.php @@ -70,6 +70,7 @@ class Profil_update_model extends DB_Model $this->formatProfilRequest($request); } } + return $res; } diff --git a/public/css/components/Profil.css b/public/css/components/Profil.css index d9b725cb6..aa9932cd7 100755 --- a/public/css/components/Profil.css +++ b/public/css/components/Profil.css @@ -1,18 +1,6 @@ -@media (max-width: 991px) { - - .md-invisible{ - display:none; - } - } - @media (min-width: 992px) { - - .lg-invisible{ - display:none; - } - } .image-lock{ height:22px; diff --git a/public/js/components/Cis/Profil/EditProfil.js b/public/js/components/Cis/Profil/EditProfil.js index 1b87950c0..56082ec34 100755 --- a/public/js/components/Cis/Profil/EditProfil.js +++ b/public/js/components/Cis/Profil/EditProfil.js @@ -16,7 +16,6 @@ export default { title: String, zustelladressenCount: Function, zustellkontakteCount: Function, - setLoading:Function, /* * NOTE(chris): * Hack to expose in "emits" declared events to $props which we use @@ -43,12 +42,10 @@ export default { info: null, }; }, - + inject:["setLoading"], provide(){ return { updateFileID: this.updateFileIDFunction, - zustellAdresseCount:this.zustelladressenCount, - zustellKontaktCount:this.zustellkontakteCount, } }, @@ -164,13 +161,10 @@ export default { {{title }}