pass $settings->_initialDocumentStatus to checkIn()

This commit is contained in:
Uwe Steinmann 2015-06-24 20:35:42 +02:00
parent 871ed870cc
commit 3c2980dfdf

View File

@ -201,7 +201,7 @@ else
$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) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
} elseif (is_bool($contentResult) && $contentResult) {