mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-29 21:17:22 +00:00
pass $settings->_initialDocumentStatus to checkIn()
This commit is contained in:
parent
871ed870cc
commit
3c2980dfdf
|
@ -201,7 +201,7 @@ else
|
||||||
$attributes = array();
|
$attributes = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
$contentResult=$document->checkIn($comment, $user, $reviewers, $approvers, $version=0, $attributes, $workflow);
|
$contentResult=$document->checkIn($comment, $user, $reviewers, $approvers, $version=0, $attributes, $workflow, $settings->_initialDocumentStatus);
|
||||||
if (is_bool($contentResult) && !$contentResult) {
|
if (is_bool($contentResult) && !$contentResult) {
|
||||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
|
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
|
||||||
} elseif (is_bool($contentResult) && $contentResult) {
|
} elseif (is_bool($contentResult) && $contentResult) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user