From 52b7226c3bd42cab74224d5be21627cf6a51ac6e Mon Sep 17 00:00:00 2001 From: Alexei Karpenko Date: Fri, 29 May 2026 18:05:09 +0200 Subject: [PATCH] fas statusbearbeitung sperre check: isStatusBeforeStudent - simplified expression --- content/student/studentrolledialog.xul.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/content/student/studentrolledialog.xul.php b/content/student/studentrolledialog.xul.php index 9db40488e..72e314873 100644 --- a/content/student/studentrolledialog.xul.php +++ b/content/student/studentrolledialog.xul.php @@ -86,9 +86,7 @@ if($prestudent_id!='') $disabled = $bismeldestichtag->checkMeldestichtagErreicht($datum) && !$rechte->isBerechtigt('student/keine_studstatuspruefung', null, 'suid') ? ' disabled="true"' : ''; - $isStatusBeforeStudent = in_array($status_kurzbz, array('Student','Diplomand','Absovlent','Incoming','Abbrecher','Unterbrecher')) - ? false - : true; + $isStatusBeforeStudent = !in_array($status_kurzbz, array('Student','Diplomand','Absovlent','Incoming','Abbrecher','Unterbrecher')); $disabledStudent = $isStatusBeforeStudent ? ' ' : ' disabled="true"';