From f281376ac2b4642e7ac3844dbfefea7aa247cea0 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 27 Feb 2025 09:05:49 +0100 Subject: [PATCH] fix setting group approvers from previous version --- views/bootstrap/class.UpdateDocument.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/views/bootstrap/class.UpdateDocument.php b/views/bootstrap/class.UpdateDocument.php index ae9b7fc7a..68f9e8b28 100644 --- a/views/bootstrap/class.UpdateDocument.php +++ b/views/bootstrap/class.UpdateDocument.php @@ -559,10 +559,12 @@ console.log(element); $tmp = array(); foreach($approvalStatus as $r) { if($r['type'] == 1) { - if(!in_array($r['required'], $mapprovers['g'])) + if($mapprovers) { + if(!in_array($r['required'], $mapprovers['g'])) + $tmp[] = $r['required']; + } else { $tmp[] = $r['required']; - } else { - $tmp[] = $r['required']; + } } } $fieldwrap = array('', '');