mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
fix take over of reviewer/approver from previous version
This commit is contained in:
parent
42ce9fa21b
commit
3ed43b0a85
|
@ -236,14 +236,18 @@ function checkForm()
|
|||
<?php
|
||||
$tmp = array();
|
||||
foreach($reviewStatus as $r) {
|
||||
$mandatory=false;
|
||||
if($r['type'] == 0 && $res) {
|
||||
foreach ($res as $rr)
|
||||
if ($rr['reviewerUserID']==$r['required']) {
|
||||
$mandatory=true;
|
||||
}
|
||||
if(!$mandatory)
|
||||
if($r['type'] == 0) {
|
||||
if($res) {
|
||||
$mandatory=false;
|
||||
foreach ($res as $rr)
|
||||
if ($rr['reviewerUserID']==$r['required']) {
|
||||
$mandatory=true;
|
||||
}
|
||||
if(!$mandatory)
|
||||
$tmp[] = $r['required'];
|
||||
} else {
|
||||
$tmp[] = $r['required'];
|
||||
}
|
||||
}
|
||||
}
|
||||
if($tmp) {
|
||||
|
@ -288,21 +292,6 @@ function checkForm()
|
|||
<td>
|
||||
<select id="GrpReviewer" class="chzn-select span9" name="grpReviewers[]" multiple="multiple" data-placeholder="<?php printMLText('select_grp_reviewers'); ?>" data-no_results_text="<?php printMLText('unknown_group'); ?>">
|
||||
<?php
|
||||
$tmp = array();
|
||||
foreach($reviewStatus as $r) {
|
||||
$mandatory=false;
|
||||
if($r['type'] == 1 && $res) {
|
||||
foreach ($res as $rr)
|
||||
if ($rr['reviewerGroupID']==$r['required']) {
|
||||
$mandatory=true;
|
||||
}
|
||||
if(!$mandatory)
|
||||
$tmp[] = $r['required'];
|
||||
}
|
||||
}
|
||||
if($tmp) {
|
||||
$this->__takeOverButton("GrpReviewer", $tmp);
|
||||
}
|
||||
foreach ($docAccess["groups"] as $grp) {
|
||||
|
||||
$mandatory=false;
|
||||
|
@ -314,6 +303,25 @@ function checkForm()
|
|||
?>
|
||||
</select>
|
||||
<?php
|
||||
$tmp = array();
|
||||
foreach($reviewStatus as $r) {
|
||||
if($r['type'] == 1) {
|
||||
if($res) {
|
||||
$mandatory=false;
|
||||
foreach ($res as $rr)
|
||||
if ($rr['reviewerGroupID']==$r['required']) {
|
||||
$mandatory=true;
|
||||
}
|
||||
if(!$mandatory)
|
||||
$tmp[] = $r['required'];
|
||||
} else {
|
||||
$tmp[] = $r['required'];
|
||||
}
|
||||
}
|
||||
}
|
||||
if($tmp) {
|
||||
$this->__takeOverButton("GrpReviewer", $tmp);
|
||||
}
|
||||
/* List all mandatory groups of reviewers */
|
||||
if($res) {
|
||||
$tmp = array();
|
||||
|
@ -375,14 +383,18 @@ function checkForm()
|
|||
<?php
|
||||
$tmp = array();
|
||||
foreach($approvalStatus as $r) {
|
||||
$mandatory=false;
|
||||
if($r['type'] == 0 && $res) {
|
||||
foreach ($res as $rr)
|
||||
if ($rr['approverUserID']==$r['required']) {
|
||||
$mandatory=true;
|
||||
}
|
||||
if(!$mandatory)
|
||||
if($r['type'] == 0) {
|
||||
if($res) {
|
||||
$mandatory=false;
|
||||
foreach ($res as $rr)
|
||||
if ($rr['approverUserID']==$r['required']) {
|
||||
$mandatory=true;
|
||||
}
|
||||
if(!$mandatory)
|
||||
$tmp[] = $r['required'];
|
||||
} else {
|
||||
$tmp[] = $r['required'];
|
||||
}
|
||||
}
|
||||
}
|
||||
if($tmp) {
|
||||
|
@ -441,14 +453,18 @@ function checkForm()
|
|||
<?php
|
||||
$tmp = array();
|
||||
foreach($approvalStatus as $r) {
|
||||
$mandatory=false;
|
||||
if($r['type'] == 1 && $res) {
|
||||
foreach ($res as $rr)
|
||||
if ($rr['approverGroupID']==$r['required']) {
|
||||
$mandatory=true;
|
||||
}
|
||||
if(!$mandatory)
|
||||
if($r['type'] == 1) {
|
||||
if($res) {
|
||||
$mandatory=false;
|
||||
foreach ($res as $rr)
|
||||
if ($rr['approverGroupID']==$r['required']) {
|
||||
$mandatory=true;
|
||||
}
|
||||
if(!$mandatory)
|
||||
$tmp[] = $r['required'];
|
||||
} else {
|
||||
$tmp[] = $r['required'];
|
||||
}
|
||||
}
|
||||
}
|
||||
if($tmp) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user