From 3c2980dfdf5c9f3ffcf54b15a7c85a54a272e4de Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 24 Jun 2015 20:35:42 +0200 Subject: [PATCH] pass $settings->_initialDocumentStatus to checkIn() --- op/op.CheckInDocument.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op/op.CheckInDocument.php b/op/op.CheckInDocument.php index 4ce8bb7b7..46fdc4237 100644 --- a/op/op.CheckInDocument.php +++ b/op/op.CheckInDocument.php @@ -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) {