diff --git a/application/controllers/components/stv/Config.php b/application/controllers/components/stv/Config.php index 5c6b52c9c..47842822c 100644 --- a/application/controllers/components/stv/Config.php +++ b/application/controllers/components/stv/Config.php @@ -31,6 +31,10 @@ class Config extends FHC_Controller 'title' => 'PreStudentIn', 'component' => './Stv/Studentenverwaltung/Details/Prestudent.js' ]; + $result['status'] = [ + 'title' => 'Status', + 'component' => './Stv/Studentenverwaltung/Details/Status.js' + ]; $result['noten'] = [ 'title' => 'Noten', 'component' => './Stv/Studentenverwaltung/Details/Noten.js' diff --git a/application/models/crm/Student_model.php b/application/models/crm/Student_model.php index 364524df9..e6df423d4 100644 --- a/application/models/crm/Student_model.php +++ b/application/models/crm/Student_model.php @@ -143,7 +143,8 @@ class Student_model extends DB_Model { return error($result); } - else { + else + { $resultObject = current(getData($result)); if (property_exists($resultObject, 'anzahl')) { diff --git a/public/js/components/Stv/Studentenverwaltung/Details/Prestudent.js b/public/js/components/Stv/Studentenverwaltung/Details/Prestudent.js index 7f3517ee9..6f067795c 100644 --- a/public/js/components/Stv/Studentenverwaltung/Details/Prestudent.js +++ b/public/js/components/Stv/Studentenverwaltung/Details/Prestudent.js @@ -554,24 +554,17 @@ export default {
- - -
- Status - -
- -
-
Gesamthistorie
+ + - - - ` diff --git a/public/js/components/Stv/Studentenverwaltung/Details/Prestudent/Status.js b/public/js/components/Stv/Studentenverwaltung/Details/Prestudent/Status.js index 4969d9b55..97e47dfa1 100644 --- a/public/js/components/Stv/Studentenverwaltung/Details/Prestudent/Status.js +++ b/public/js/components/Stv/Studentenverwaltung/Details/Prestudent/Status.js @@ -356,7 +356,7 @@ export default{ }) .catch(this.$fhcAlert.handleSystemError); CoreRESTClient - .get('components/stv/Prestudent/getStudienplaene/' + this.prestudent_id) + .get('components/stv/Prestudent/getStudienplaene/' + this.modelValue.prestudent_id) .then(result => CoreRESTClient.getData(result.data) || []) .then(result => { this.listStudienplaene = result; diff --git a/public/js/components/Stv/Studentenverwaltung/Details/Status.js b/public/js/components/Stv/Studentenverwaltung/Details/Status.js new file mode 100644 index 000000000..b7ecc556d --- /dev/null +++ b/public/js/components/Stv/Studentenverwaltung/Details/Status.js @@ -0,0 +1,18 @@ +import TblStatus from "./Prestudent/Status.js"; + +export default { + components: { + TblStatus + }, + props: { + modelValue: Object, + }, + template: ` +
+
+ Status + +
+
+ ` +} \ No newline at end of file