mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-10-12 15:04:04 +00:00
bug beim laden des status tabs ohne meldestichtag
This commit is contained in:
@@ -114,9 +114,8 @@ class Status extends FHCAPI_Controller
|
|||||||
$this->load->model('codex/Bismeldestichtag_model', 'BismeldestichtagModel');
|
$this->load->model('codex/Bismeldestichtag_model', 'BismeldestichtagModel');
|
||||||
|
|
||||||
$result = $this->BismeldestichtagModel->getLastReachedMeldestichtag();
|
$result = $this->BismeldestichtagModel->getLastReachedMeldestichtag();
|
||||||
$data = $this->getDataOrTerminateWithError($result);
|
|
||||||
|
|
||||||
$this->terminateWithSuccess($data);
|
$this->terminateWithSuccess(hasData($result) ? getData($result) : array());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isLastStatus($prestudent_id)
|
public function isLastStatus($prestudent_id)
|
||||||
|
|||||||
@@ -401,7 +401,7 @@ export default{
|
|||||||
this.$api
|
this.$api
|
||||||
.call(ApiStvPrestudent.getLastBismeldestichtag())
|
.call(ApiStvPrestudent.getLastBismeldestichtag())
|
||||||
.then(result => {
|
.then(result => {
|
||||||
this.dataMeldestichtag = result.data[0].meldestichtag;
|
this.dataMeldestichtag = result.data[0]?.meldestichtag;
|
||||||
if (this.$refs.table && this.$refs.table.tableBuilt)
|
if (this.$refs.table && this.$refs.table.tableBuilt)
|
||||||
this.$refs.table.tabulator.redraw(true);
|
this.$refs.table.tabulator.redraw(true);
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user