also shows the zustelladresse checkbox when viewing an Adresse component in the hr View for Profil Updates

This commit is contained in:
SimonGschnell
2024-02-05 13:16:51 +01:00
parent a2d0f9e39a
commit 4faaa78ee1
4 changed files with 28 additions and 6 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ class ProfilUpdate extends Auth_Controller
$insertID = $this->handleAdresse($requested_change, $personID);
$insertID = hasData($insertID) ? getData($insertID) : null;
if(isset($insertID)) {
$requested_change['kontakt_id'] = $insertID;
$requested_change['adresse_id'] = $insertID;
$update_res = $this->updateRequestedChange($id,$requested_change);
if(isError($update_res)){
echo json_encode(error("was not able to add addresse_id " . $insertID . " to profilRequest " . $id ));