mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
set doc status S_NEED_CORRECTION when revision status -1 is set
This commit is contained in:
parent
7f1f551334
commit
0cc14e937d
|
@ -64,7 +64,7 @@ class SeedDMS_Controller_ReviseDocument extends SeedDMS_Controller_Common {
|
|||
$result = $this->callHook('reviseUpdateDocumentStatus', $content);
|
||||
if($result === null) {
|
||||
if ($revisionstatus == -1){
|
||||
if(!$content->setStatus(S_REJECTED,$comment,$user)) {
|
||||
if(!$content->setStatus(S_NEEDS_CORRECTION,$comment,$user)) {
|
||||
$this->error = 1;
|
||||
$this->errormsg = "revision_update_failed";
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user