Use only active Statusgruende & "--keine Auswahl--"

This commit is contained in:
cgfhtw
2024-07-16 09:59:10 +02:00
parent 043d876642
commit 7031a4d9c4
3 changed files with 22 additions and 7 deletions
@@ -54,11 +54,11 @@ class Status extends FHCAPI_Controller
{
$this->load->model('crm/Statusgrund_model', 'StatusgrundModel');
$result = $this->StatusgrundModel->load();
if (isError($result)) {
$this->terminateWithError(getError($result), self::ERROR_TYPE_GENERAL);
}
return $this->terminateWithSuccess(getData($result) ?: []);
$result = $this->StatusgrundModel->getAktiveGruende();
$data = $this->getDataOrTerminateWithError($result);
$this->terminateWithSuccess($data);
}
public function getLastBismeldestichtag()