- set expiration status properly

This commit is contained in:
steinm 2011-07-20 16:44:38 +00:00
parent b4674164d6
commit afb4774ada

View File

@ -468,11 +468,11 @@ class LetoDMS_Core_Document { /* {{{ */
$st=$lc->getStatus(); $st=$lc->getStatus();
if (($st["status"]==S_DRAFT_REV || $st["status"]==S_DRAFT_APP) && $this->hasExpired()){ if (($st["status"]==S_DRAFT_REV || $st["status"]==S_DRAFT_APP) && $this->hasExpired()){
$lc->setStatus(S_EXPIRED,""); $lc->setStatus(S_EXPIRED,"", $this->getOwner());
return true; return true;
} }
else if ($st["status"]==S_EXPIRED && !$this->hasExpired() ){ else if ($st["status"]==S_EXPIRED && !$this->hasExpired() ){
$lc->verifyStatus(true); $lc->verifyStatus(true, $this->getOwner());
return true; return true;
} }
} }