set doc status S_NEED_CORRECTION when revision status -1 is set

This commit is contained in:
Uwe Steinmann 2018-01-30 19:19:40 +01:00
parent 7f1f551334
commit 0cc14e937d

View File

@ -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;