mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 01:12:17 +00:00
Tab Status: change statusgrund_kurzbz to bezeichnung_mehrsprachig
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user