mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-28 12:38:00 +00:00
pass $settings->_initialDocumentStatus to checkIn()
This commit is contained in:
parent
871ed870cc
commit
3c2980dfdf
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user