From 24df22ba240318fe0e272dcab7d506149bc01574 Mon Sep 17 00:00:00 2001 From: ma0068 Date: Mon, 28 Jul 2025 08:40:45 +0200 Subject: [PATCH] enable text-input zgv-master and enable remove dates ZGV --- application/controllers/api/frontend/v1/stv/Prestudent.php | 6 ++++++ .../Stv/Studentenverwaltung/Details/Prestudent.js | 1 + 2 files changed, 7 insertions(+) diff --git a/application/controllers/api/frontend/v1/stv/Prestudent.php b/application/controllers/api/frontend/v1/stv/Prestudent.php index b433702b6..ed48e6d9a 100644 --- a/application/controllers/api/frontend/v1/stv/Prestudent.php +++ b/application/controllers/api/frontend/v1/stv/Prestudent.php @@ -140,6 +140,12 @@ class Prestudent extends FHCAPI_Controller if ($val !== null || $prop == 'foerderrelevant') { $update_prestudent[$prop] = $val; } + if (($prop == 'zgvdatum' && $val == '') + || ($prop == 'zgvmadatum' && $val == '') + || ($prop == 'zgvdoktordatum' && $val == '') + ) { + $update_prestudent[$prop] = null; + } } $update_prestudent['updateamum'] = date('c'); diff --git a/public/js/components/Stv/Studentenverwaltung/Details/Prestudent.js b/public/js/components/Stv/Studentenverwaltung/Details/Prestudent.js index e782a6936..a36b355b1 100644 --- a/public/js/components/Stv/Studentenverwaltung/Details/Prestudent.js +++ b/public/js/components/Stv/Studentenverwaltung/Details/Prestudent.js @@ -426,6 +426,7 @@ export default { name="zgvdoktordatum" no-today auto-apply + text-input :enable-time-picker="false" format="dd.MM.yyyy" preview-format="dd.MM.yyyy"