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('', '');