adds more profil phrasen error messages

This commit is contained in:
SimonGschnell
2024-04-08 15:08:20 +02:00
parent 1b04d70839
commit 960341e25d
2 changed files with 43 additions and 2 deletions
+2 -2
View File
@@ -670,7 +670,7 @@ class ProfilUpdate extends Auth_Controller
$this->PersonModel->addJoin("public.tbl_kontakt","public.tbl_kontakt.person_id = public.tbl_person.person_id");
$zustellKontakteArray = $this->PersonModel->loadWhere(["public.tbl_person.person_id"=>$this->pid, "zustellung"=>TRUE]);
if(!isSuccess($zustellKontakteArray)){
return error("error when querying zustellkontakte");
return error($this->p->t('profilUpdate','profilUpdate_loadingZustellkontakte_error'));
}
$zustellKontakteArray = hasData($zustellKontakteArray) ? getData($zustellKontakteArray) : null;
@@ -692,7 +692,7 @@ class ProfilUpdate extends Auth_Controller
$this->PersonModel->addJoin("public.tbl_adresse","public.tbl_adresse.person_id = public.tbl_person.person_id");
$zustellAdressenArray = $this->PersonModel->loadWhere(["public.tbl_person.person_id"=>$this->pid, "zustelladresse"=>TRUE]);
if(!isSuccess($zustellAdressenArray)){
return error("error when querying zustelladressen");
return error($this->p->t('profilUpdate','profilUpdate_loadingZustellAdressen_error'));
}
$zustellAdressenArray = hasData($zustellAdressenArray) ? getData($zustellAdressenArray) : null;
+41
View File
@@ -25600,6 +25600,47 @@ array(
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdate_loadingZustellkontakte_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ein Fehler ist während dem laden der Zustellkontakte aufgetreten',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'An error occurred when querying zustellkontakte',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdate_loadingZustellAdressen_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ein Fehler ist während dem laden der Zustelladressen aufgetreten',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'An error occurred when querying zustelladressen',
'description' => '',
'insertvon' => 'system'
)
)
),