pass comment to finishRevision()

This commit is contained in:
Uwe Steinmann 2017-01-25 14:51:38 +01:00
parent 0d5f7a607a
commit b90d1a6be5

View File

@ -52,7 +52,7 @@ class SeedDMS_Controller_ReviseDocument extends SeedDMS_Controller_Common {
} elseif ($revisiontype == "grp") {
if(0 > $content->setRevision($group, $user, $revisionstatus, $comment)) {
$this->error = 1;
$this->errormsg = "revision_update_failed";
$this->errormsg = $ll."revision_update_failed";
return false;
}
}
@ -90,7 +90,7 @@ class SeedDMS_Controller_ReviseDocument extends SeedDMS_Controller_Common {
// then release the document otherwise put it back into revision workflow
if ($revisionCT == $revisionTotal) {
$newStatus=S_RELEASED;
if ($content->finishRevision($user, $newStatus, '', getMLText("automatic_status_update"))) {
if ($content->finishRevision($user, $newStatus, 'Finished revision workflow', getMLText("automatic_status_update"))) {
if(!$this->callHook('finishReviseDocument', $content)) {
}
}