mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-09 02:22:40 +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") {
|
} elseif ($revisiontype == "grp") {
|
||||||
if(0 > $content->setRevision($group, $user, $revisionstatus, $comment)) {
|
if(0 > $content->setRevision($group, $user, $revisionstatus, $comment)) {
|
||||||
$this->error = 1;
|
$this->error = 1;
|
||||||
$this->errormsg = "revision_update_failed";
|
$this->errormsg = $ll."revision_update_failed";
|
||||||
return false;
|
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
|
// then release the document otherwise put it back into revision workflow
|
||||||
if ($revisionCT == $revisionTotal) {
|
if ($revisionCT == $revisionTotal) {
|
||||||
$newStatus=S_RELEASED;
|
$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)) {
|
if(!$this->callHook('finishReviseDocument', $content)) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user