mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
add new option enableNotificationWorkflow
turns on/off is mail is set to users/groups in next step of workflow
This commit is contained in:
parent
6d0a7d4f82
commit
c3b80c1b5d
|
@ -123,6 +123,11 @@ class Settings { /* {{{ */
|
||||||
var $_enableDuplicateDocNames = true;
|
var $_enableDuplicateDocNames = true;
|
||||||
// enable/disable notification when added as a reviewer/approver
|
// enable/disable notification when added as a reviewer/approver
|
||||||
var $_enableNotificationAppRev = true;
|
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
|
// preset expiration date
|
||||||
var $_presetExpirationDate = "";
|
var $_presetExpirationDate = "";
|
||||||
// the name of the versioning info file created by the backup tool
|
// the name of the versioning info file created by the backup tool
|
||||||
|
@ -485,6 +490,7 @@ class Settings { /* {{{ */
|
||||||
$tab = $node[0]->attributes();
|
$tab = $node[0]->attributes();
|
||||||
$this->_enableNotificationAppRev = Settings::boolval($tab["enableNotificationAppRev"]);
|
$this->_enableNotificationAppRev = Settings::boolval($tab["enableNotificationAppRev"]);
|
||||||
$this->_enableOwnerNotification = Settings::boolval($tab["enableOwnerNotification"]);
|
$this->_enableOwnerNotification = Settings::boolval($tab["enableOwnerNotification"]);
|
||||||
|
$this->_enableNotificationWorkflow = Settings::boolval($tab["enableNotificationWorkflow"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// XML Path: /configuration/advanced/server
|
// XML Path: /configuration/advanced/server
|
||||||
|
@ -738,6 +744,7 @@ class Settings { /* {{{ */
|
||||||
$node = $this->getXMLNode($xml, '/configuration/advanced', 'notification');
|
$node = $this->getXMLNode($xml, '/configuration/advanced', 'notification');
|
||||||
$this->setXMLAttributValue($node, "enableNotificationAppRev", $this->_enableNotificationAppRev);
|
$this->setXMLAttributValue($node, "enableNotificationAppRev", $this->_enableNotificationAppRev);
|
||||||
$this->setXMLAttributValue($node, "enableOwnerNotification", $this->_enableOwnerNotification);
|
$this->setXMLAttributValue($node, "enableOwnerNotification", $this->_enableOwnerNotification);
|
||||||
|
$this->setXMLAttributValue($node, "enableNotificationWorkflow", $this->_enableNotificationWorkflow);
|
||||||
|
|
||||||
// XML Path: /configuration/advanced/server
|
// XML Path: /configuration/advanced/server
|
||||||
$node = $this->getXMLNode($xml, '/configuration/advanced', 'server');
|
$node = $this->getXMLNode($xml, '/configuration/advanced', 'server');
|
||||||
|
|
|
@ -152,6 +152,7 @@ if ($action == "saveSettings")
|
||||||
// SETTINGS - ADVANCED - NOTIFICATION
|
// SETTINGS - ADVANCED - NOTIFICATION
|
||||||
$settings->_enableOwnerNotification = getBoolValue("enableOwnerNotification");
|
$settings->_enableOwnerNotification = getBoolValue("enableOwnerNotification");
|
||||||
$settings->_enableNotificationAppRev = getBoolValue("enableNotificationAppRev");
|
$settings->_enableNotificationAppRev = getBoolValue("enableNotificationAppRev");
|
||||||
|
$settings->_enableNotificationWorkflow = getBoolValue("enableNotificationWorkflow");
|
||||||
|
|
||||||
// SETTINGS - ADVANCED - SERVER
|
// SETTINGS - ADVANCED - SERVER
|
||||||
$settings->_coreDir = $_POST["coreDir"];
|
$settings->_coreDir = $_POST["coreDir"];
|
||||||
|
|
|
@ -517,6 +517,10 @@ if(!is_writeable($settings->_configFilePath)) {
|
||||||
<td><?php printMLText("settings_enableNotificationAppRev");?>:</td>
|
<td><?php printMLText("settings_enableNotificationAppRev");?>:</td>
|
||||||
<td><input name="enableNotificationAppRev" type="checkbox" <?php if ($settings->_enableNotificationAppRev) echo "checked" ?> /></td>
|
<td><input name="enableNotificationAppRev" type="checkbox" <?php if ($settings->_enableNotificationAppRev) echo "checked" ?> /></td>
|
||||||
</tr>
|
</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
|
-- SETTINGS - ADVANCED - SERVER
|
||||||
|
|
Loading…
Reference in New Issue
Block a user