mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-26 09:04:28 +00:00
Use only active Statusgruende & "--keine Auswahl--"
This commit is contained in:
@@ -27,4 +27,19 @@ class Statusgrund_model extends DB_Model
|
||||
|
||||
return success($status->retval);
|
||||
}
|
||||
|
||||
public function getAktiveGruende()
|
||||
{
|
||||
$lang = '[(SELECT index FROM public.tbl_sprache WHERE sprache=' . $this->escape(getUserLanguage()) . ' LIMIT 1)]';
|
||||
|
||||
$this->addSelect('tbl_status_grund.*');
|
||||
$this->addSelect('bezeichnung_mehrsprachig' . $lang . ' AS bezeichnung');
|
||||
$this->addSelect('beschreibung' . $lang . ' AS beschreibung');
|
||||
|
||||
$this->addOrder('bezeichnung_mehrsprachig' . $lang);
|
||||
|
||||
return $this->loadWhere([
|
||||
'aktiv' => true
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user