mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
Use only active Statusgruende & "--keine Auswahl--"
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -933,8 +933,8 @@ export default{
|
||||
:label="$p.t('studierendenantrag/antrag_grund')"
|
||||
v-model="statusData['statusgrund_id']"
|
||||
>
|
||||
<option value=""></option>
|
||||
<option v-for="grund in gruende" :key="grund.statusgrund_id" :value="grund.statusgrund_id">{{grund.beschreibung[0]}}</option>
|
||||
<option value="">-- {{$p.t('fehlermonitoring', 'keineAuswahl')}} --</option>
|
||||
<option v-for="grund in gruende" :key="grund.statusgrund_id" :value="grund.statusgrund_id">{{grund.bezeichnung}}</option>
|
||||
</form-input>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user