mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
use defines S_DRAFT_APP and S_RELEASE instead of numbers
This commit is contained in:
parent
0c1c829cca
commit
9a6772b59a
|
@ -231,7 +231,7 @@ if ($_POST["approvalStatus"]==-1){
|
||||||
// count of the approvals required for this document.
|
// count of the approvals required for this document.
|
||||||
if ($approvalCT == $approvalTotal) {
|
if ($approvalCT == $approvalTotal) {
|
||||||
// Change the status to released.
|
// Change the status to released.
|
||||||
$newStatus=2;
|
$newStatus=S_RELEASED;
|
||||||
if($content->setStatus($newStatus, getMLText("automatic_status_update"), $user)) {
|
if($content->setStatus($newStatus, getMLText("automatic_status_update"), $user)) {
|
||||||
// Send notification to subscribers.
|
// Send notification to subscribers.
|
||||||
if($notifier) {
|
if($notifier) {
|
||||||
|
|
|
@ -256,11 +256,11 @@ if ($_POST["reviewStatus"]==-1){
|
||||||
// If the approvals received is less than the approvals total, then
|
// If the approvals received is less than the approvals total, then
|
||||||
// change status to pending approval.
|
// change status to pending approval.
|
||||||
if ($approvalCT<$approvalTotal) {
|
if ($approvalCT<$approvalTotal) {
|
||||||
$newStatus=1;
|
$newStatus=S_DRAFT_APP;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Otherwise, change the status to released.
|
// Otherwise, change the status to released.
|
||||||
$newStatus=2;
|
$newStatus=S_RELEASED;
|
||||||
}
|
}
|
||||||
if ($content->setStatus($newStatus, getMLText("automatic_status_update"), $user)) {
|
if ($content->setStatus($newStatus, getMLText("automatic_status_update"), $user)) {
|
||||||
// Send notification to subscribers.
|
// Send notification to subscribers.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user