Bugfixes Status edit

This commit is contained in:
cgfhtw
2024-07-26 11:29:08 +02:00
parent 916cecca73
commit 57e4f585fe
2 changed files with 4 additions and 4 deletions
@@ -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);