From 827049ee9a89b03daac1b2db3cc0ba876a8ae7ea Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 16 Jan 2020 12:45:59 +0100 Subject: [PATCH] nofication field can be turned of when uploading a new document --- views/bootstrap/class.AddDocument.php | 2 ++ views/bootstrap/class.Settings.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/views/bootstrap/class.AddDocument.php b/views/bootstrap/class.AddDocument.php index 36ccdf1e6..65e530ae7 100644 --- a/views/bootstrap/class.AddDocument.php +++ b/views/bootstrap/class.AddDocument.php @@ -635,6 +635,7 @@ $(document).ready(function() { } $this->warningMsg(getMLText("add_doc_reviewer_approver_warning")); } + if(!$nodocumentformfields || !in_array('notification', $nodocumentformfields)) { $this->contentSubHeading(getMLText("add_document_notify")); $options = array(); @@ -671,6 +672,7 @@ $(document).ready(function() { 'options'=>$options ) ); + } $this->formSubmit(" ".getMLText('add_document')); ?> diff --git a/views/bootstrap/class.Settings.php b/views/bootstrap/class.Settings.php index 14a48cb56..31f5810e0 100644 --- a/views/bootstrap/class.Settings.php +++ b/views/bootstrap/class.Settings.php @@ -288,7 +288,7 @@ $this->showStartPaneContent('site', (!$currenttab || $currenttab == 'site')); --> showConfigHeadline('settings_Edition'); ?> showConfigCheckbox('settings_strictFormCheck', 'strictFormCheck'); ?> -showConfigOption('settings_noDocumentFormFields', 'noDocumentFormFields', array('comment', 'keywords', 'categories', 'sequence', 'expires', 'version_comment'), true, true); ?> +showConfigOption('settings_noDocumentFormFields', 'noDocumentFormFields', array('comment', 'keywords', 'categories', 'sequence', 'expires', 'version_comment', 'notification'), true, true); ?> showConfigText('settings_viewOnlineFileTypes', 'viewOnlineFileTypes', 'array'); ?> showConfigText('settings_editOnlineFileTypes', 'editOnlineFileTypes', 'array'); ?> showConfigCheckbox('settings_enableConverting', 'enableConverting'); ?>