mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
- set expiration status properly
This commit is contained in:
parent
b4674164d6
commit
afb4774ada
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user