From 8609fdee74bcbf310f6cf840c3c72733059b0b37 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 30 Mar 2023 12:02:31 +0200 Subject: [PATCH] do not show warning that document is released if initial status is draft --- views/bootstrap/class.UpdateDocument.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/views/bootstrap/class.UpdateDocument.php b/views/bootstrap/class.UpdateDocument.php index 5b0815a47..c0a60af1b 100644 --- a/views/bootstrap/class.UpdateDocument.php +++ b/views/bootstrap/class.UpdateDocument.php @@ -338,7 +338,8 @@ console.log(element); ) ); } - $this->warningMsg(getMLText("add_doc_workflow_warning")); + if($settings->_initialDocumentStatus == S_RELEASED) + $this->warningMsg(getMLText("add_doc_workflow_warning")); } elseif($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') { if($workflowmode == 'traditional') { $this->contentSubHeading(getMLText("assign_reviewers"));