mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
pass comment to finishRevision()
This commit is contained in:
parent
0d5f7a607a
commit
b90d1a6be5
|
@ -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)) {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user