when an error happenes to editProfil Modal will also be closed then

This commit is contained in:
SimonGschnell
2024-09-12 11:53:13 +02:00
parent 1de8c00990
commit 1208c6829c
3 changed files with 11 additions and 3 deletions
@@ -160,7 +160,7 @@ class ProfilUpdate extends FHCAPI_Controller
$res = $this->getDataOrTerminateWithError($res);
//? the user cannot delete a zustelladresse/kontakt
if (isset($payload["delete"]) && $payload-[$identifier == "kontakt_id" ? "zustellung" : "zustelladresse"]) {
if (isset($payload["delete"]) && $payload[$identifier == "kontakt_id" ? "zustellung" : "zustelladresse"]) {
$this->terminateWithError($this->p->t('profilUpdate', 'profilUpdate_deleteZustellung_error'));
}