mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
Bugfixes Status edit
This commit is contained in:
@@ -266,7 +266,7 @@ class Prestudent extends FHCAPI_Controller
|
||||
|
||||
public function getStudienplaene($prestudent_id)
|
||||
{
|
||||
if (!is_int($prestudent_id))
|
||||
if (!is_int((int)$prestudent_id) || (int)$prestudent_id . '' != $prestudent_id)
|
||||
show_404();
|
||||
$this->load->model('organisation/Studienplan_model', 'StudienplanModel');
|
||||
$result = $this->StudienplanModel->getStudienplaeneByPrestudents($prestudent_id);
|
||||
|
||||
@@ -144,7 +144,7 @@ export default{
|
||||
)
|
||||
.then(result => {
|
||||
this.$reloadList();
|
||||
this.emit('saved');
|
||||
this.$emit('saved');
|
||||
this.$refs.modal.hide();
|
||||
})
|
||||
.catch(this.$fhcAlert.handleSystemError);
|
||||
@@ -152,13 +152,13 @@ export default{
|
||||
editStatus() {
|
||||
this.$refs.form
|
||||
.post(
|
||||
'api/frontend/v1/stv/status/updateStatus/' + this.statusId.join('/'),
|
||||
'api/frontend/v1/stv/status/updateStatus/' + Object.values(this.statusId).join('/'),
|
||||
this.formData
|
||||
)
|
||||
.then(result => {
|
||||
this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successSave'));
|
||||
this.$reloadList();
|
||||
this.emit('saved');
|
||||
this.$emit('saved');
|
||||
this.$refs.modal.hide();
|
||||
})
|
||||
.catch(this.$fhcAlert.handleSystemError);
|
||||
|
||||
Reference in New Issue
Block a user