Tab Status: change statusgrund_kurzbz to bezeichnung_mehrsprachig

This commit is contained in:
ma0068
2024-06-14 15:58:11 +02:00
parent 521423a343
commit 1036c97be7
3 changed files with 14 additions and 6 deletions
@@ -32,9 +32,16 @@ class Status extends FHCAPI_Controller
public function getHistoryPrestudent($prestudent_id)
{
$this->load->model('system/Sprache_model', 'SpracheModel');
$this->SpracheModel->addSelect('index');
$result = $this->SpracheModel->loadWhere(array('sprache' => getUserLanguage()));
// Return language index
$lang = hasData($result) ? getData($result)[0]->index : 1;
$this->load->model('crm/Prestudent_model', 'PrestudentModel');
$result = $this->PrestudentModel->getHistoryPrestudent($prestudent_id);
$result = $this->PrestudentModel->getHistoryPrestudent($prestudent_id, $lang);
if (isError($result))
{
$this->terminateWithError(getError($result), self::ERROR_TYPE_GENERAL);