add new option enableNotificationWorkflow

turns on/off is mail is set to users/groups in next step of workflow
This commit is contained in:
Uwe Steinmann 2015-03-11 18:11:41 +01:00
parent 6d0a7d4f82
commit c3b80c1b5d
3 changed files with 12 additions and 0 deletions

View File

@ -123,6 +123,11 @@ class Settings { /* {{{ */
var $_enableDuplicateDocNames = true;
// enable/disable notification when added as a reviewer/approver
var $_enableNotificationAppRev = true;
// enable/disable notification of users/group who need to take action for
// next transition. This is not like enableNotificationAppRev where a
// notification is added to the document. If this is turned on, the
// notification will be send in any case.
var $_enableNotificationWorkflow = false;
// preset expiration date
var $_presetExpirationDate = "";
// the name of the versioning info file created by the backup tool
@ -485,6 +490,7 @@ class Settings { /* {{{ */
$tab = $node[0]->attributes();
$this->_enableNotificationAppRev = Settings::boolval($tab["enableNotificationAppRev"]);
$this->_enableOwnerNotification = Settings::boolval($tab["enableOwnerNotification"]);
$this->_enableNotificationWorkflow = Settings::boolval($tab["enableNotificationWorkflow"]);
}
// XML Path: /configuration/advanced/server
@ -738,6 +744,7 @@ class Settings { /* {{{ */
$node = $this->getXMLNode($xml, '/configuration/advanced', 'notification');
$this->setXMLAttributValue($node, "enableNotificationAppRev", $this->_enableNotificationAppRev);
$this->setXMLAttributValue($node, "enableOwnerNotification", $this->_enableOwnerNotification);
$this->setXMLAttributValue($node, "enableNotificationWorkflow", $this->_enableNotificationWorkflow);
// XML Path: /configuration/advanced/server
$node = $this->getXMLNode($xml, '/configuration/advanced', 'server');

View File

@ -152,6 +152,7 @@ if ($action == "saveSettings")
// SETTINGS - ADVANCED - NOTIFICATION
$settings->_enableOwnerNotification = getBoolValue("enableOwnerNotification");
$settings->_enableNotificationAppRev = getBoolValue("enableNotificationAppRev");
$settings->_enableNotificationWorkflow = getBoolValue("enableNotificationWorkflow");
// SETTINGS - ADVANCED - SERVER
$settings->_coreDir = $_POST["coreDir"];

View File

@ -517,6 +517,10 @@ if(!is_writeable($settings->_configFilePath)) {
<td><?php printMLText("settings_enableNotificationAppRev");?>:</td>
<td><input name="enableNotificationAppRev" type="checkbox" <?php if ($settings->_enableNotificationAppRev) echo "checked" ?> /></td>
</tr>
<tr title="<?php printMLText("settings_enableNotificationWorkflow_desc");?>">
<td><?php printMLText("settings_enableNotificationWorkflow");?>:</td>
<td><input name="enableNotificationWorkflow" type="checkbox" <?php if ($settings->_enableNotificationWorkflow) echo "checked" ?> /></td>
</tr>
<!--
-- SETTINGS - ADVANCED - SERVER