From 94d6f0625e717b0d35f60525342a543dcf8fe886 Mon Sep 17 00:00:00 2001
From: Carsten  Rose <carsten.rose@math.uzh.ch>
Date: Sat, 11 Jan 2025 20:58:42 +0100
Subject: [PATCH] Fixes #20363: Form Load on 'new' - missing r.

---
 extension/Classes/Core/QuickFormQuery.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extension/Classes/Core/QuickFormQuery.php b/extension/Classes/Core/QuickFormQuery.php
index 07480c6e7..a0b759cee 100644
--- a/extension/Classes/Core/QuickFormQuery.php
+++ b/extension/Classes/Core/QuickFormQuery.php
@@ -1871,7 +1871,7 @@ class QuickFormQuery {
 
             switch ($permitMode) {
                 case  FORM_PERMISSION_SIP:
-                    if (!$sipFound || $formNameFoundInStore !== STORE_SIP || $recordIdFoundInStore !== STORE_SIP) {
+                    if (!$sipFound || $formNameFoundInStore === STORE_CLIENT || $recordIdFoundInStore === STORE_CLIENT) {
                         throw new \UserFormException("SIP Parameter needed for this form.", ERROR_SIP_NEEDED_FOR_THIS_FORM);
                     }
                     break;
-- 
GitLab