From 9c69d8cc466b8d4e1a5e16ce2fd7334e6772b792 Mon Sep 17 00:00:00 2001 From: Simon Gschnell Date: Tue, 19 Dec 2023 15:49:57 +0100 Subject: [PATCH] trims the student information so that the value is falsy in javascript --- application/controllers/Cis/Profil.php | 2 +- public/js/components/Cis/Profil/StudentProfil.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/controllers/Cis/Profil.php b/application/controllers/Cis/Profil.php index aed70c0ae..0a3189fdd 100644 --- a/application/controllers/Cis/Profil.php +++ b/application/controllers/Cis/Profil.php @@ -639,7 +639,7 @@ class Profil extends Auth_Controller $res->mittel = $betriebsmittelperson_res; $res->matrikelnummer = $matr_res->matr_nr; foreach($student_res as $key => $value){ - $res->$key = $value; + $res->$key = trim($value); } $res->zuttritsgruppen = $zutrittsgruppe_res; diff --git a/public/js/components/Cis/Profil/StudentProfil.js b/public/js/components/Cis/Profil/StudentProfil.js index 850d4da68..f05c53dc6 100644 --- a/public/js/components/Cis/Profil/StudentProfil.js +++ b/public/js/components/Cis/Profil/StudentProfil.js @@ -366,9 +366,9 @@ export default {
- +
- +