diff --git a/op/op.ApproveDocument.php b/op/op.ApproveDocument.php index b82df63bb..f73b50db7 100644 --- a/op/op.ApproveDocument.php +++ b/op/op.ApproveDocument.php @@ -231,7 +231,7 @@ if ($_POST["approvalStatus"]==-1){ // count of the approvals required for this document. if ($approvalCT == $approvalTotal) { // Change the status to released. - $newStatus=2; + $newStatus=S_RELEASED; if($content->setStatus($newStatus, getMLText("automatic_status_update"), $user)) { // Send notification to subscribers. if($notifier) { diff --git a/op/op.ReviewDocument.php b/op/op.ReviewDocument.php index 3c0f747a3..5d60c8b5c 100644 --- a/op/op.ReviewDocument.php +++ b/op/op.ReviewDocument.php @@ -256,11 +256,11 @@ if ($_POST["reviewStatus"]==-1){ // If the approvals received is less than the approvals total, then // change status to pending approval. if ($approvalCT<$approvalTotal) { - $newStatus=1; + $newStatus=S_DRAFT_APP; } else { // Otherwise, change the status to released. - $newStatus=2; + $newStatus=S_RELEASED; } if ($content->setStatus($newStatus, getMLText("automatic_status_update"), $user)) { // Send notification to subscribers.