diff --git a/inc/inc.ClassSettings.php b/inc/inc.ClassSettings.php index 557a35f3d..e10fd8c55 100644 --- a/inc/inc.ClassSettings.php +++ b/inc/inc.ClassSettings.php @@ -185,7 +185,7 @@ class Settings { /* {{{ */ // enable/disable listing logged in user as reviewer/approver var $_enableSelfRevApp = false; // enable/disable hidden user as reviewer/approver - var $_enableHiddenRevApp = false; + var $_enableHiddenRevApp = true; // enable/disable update of a review/approval by the reviewer/approver var $_enableUpdateRevApp = false; // enable/disable removal of a review/approval by the admiistrator @@ -797,6 +797,7 @@ class Settings { /* {{{ */ $this->_enableAdminRevApp = Settings::boolval($tab["enableAdminRevApp"]); $this->_enableOwnerRevApp = Settings::boolval($tab["enableOwnerRevApp"]); $this->_enableSelfRevApp = Settings::boolval($tab["enableSelfRevApp"]); + $this->_enableHiddenRevApp = Settings::boolval($tab["enableHiddenRevApp"]); $this->_enableUpdateRevApp = Settings::boolval($tab["enableUpdateRevApp"]); $this->_enableRemoveRevApp = Settings::boolval($tab["enableRemoveRevApp"]); $this->_enableSelfReceipt = Settings::boolval($tab["enableSelfReceipt"]); @@ -1166,6 +1167,7 @@ class Settings { /* {{{ */ $this->setXMLAttributValue($node, "enableAdminRevApp", $this->_enableAdminRevApp); $this->setXMLAttributValue($node, "enableOwnerRevApp", $this->_enableOwnerRevApp); $this->setXMLAttributValue($node, "enableSelfRevApp", $this->_enableSelfRevApp); + $this->setXMLAttributValue($node, "enableHiddenRevApp", $this->_enableHiddenRevApp); $this->setXMLAttributValue($node, "enableUpdateRevApp", $this->_enableUpdateRevApp); $this->setXMLAttributValue($node, "enableRemoveRevApp", $this->_enableRemoveRevApp); $this->setXMLAttributValue($node, "enableSelfReceipt", $this->_enableSelfReceipt); diff --git a/out/out.WorkflowMgr.php b/out/out.WorkflowMgr.php index a727d8d0b..49a395e78 100644 --- a/out/out.WorkflowMgr.php +++ b/out/out.WorkflowMgr.php @@ -57,6 +57,7 @@ if($view) { $view->setParam('selworkflow', $selworkflow); $view->setParam('allworkflows', $workflows); $view->setParam('allworkflowstates', $workflowstates); + $view->setParam('enablehiddenrevapp', $settings->_enableHiddenRevApp); $view->setParam('accessobject', $accessop); $view($_GET); exit; diff --git a/views/bootstrap/class.SetWorkflow.php b/views/bootstrap/class.SetWorkflow.php index 3d60834d5..6ce33a06d 100644 --- a/views/bootstrap/class.SetWorkflow.php +++ b/views/bootstrap/class.SetWorkflow.php @@ -70,8 +70,8 @@ $(document).ready( function() { // Display the Workflow form. $this->rowStart(); $this->columnStart(4); - $workflows = $dms->getAllWorkflows(); - if($workflows) { + $workflows = $dms->getAllWorkflows(); + if($workflows) { ?>
columnEnd(); $this->columnStart(8); ?> diff --git a/views/bootstrap/class.Settings.php b/views/bootstrap/class.Settings.php index ebdfd3de0..e323da2c1 100644 --- a/views/bootstrap/class.Settings.php +++ b/views/bootstrap/class.Settings.php @@ -535,6 +535,7 @@ if(($kkk = $this->callHook('getFullSearchEngine')) && is_array($kkk)) showConfigCheckbox('settings_enableAdminRevApp', 'enableAdminRevApp'); ?> showConfigCheckbox('settings_enableOwnerRevApp', 'enableOwnerRevApp'); ?> showConfigCheckbox('settings_enableSelfRevApp', 'enableSelfRevApp'); ?> +showConfigCheckbox('settings_enableHiddenRevApp', 'enableHiddenRevApp'); ?> showConfigCheckbox('settings_enableUpdateRevApp', 'enableUpdateRevApp'); ?> showConfigCheckbox('settings_enableRemoveRevApp', 'enableRemoveRevApp'); ?> showConfigCheckbox('settings_enableSelfReceipt', 'enableSelfReceipt'); ?> diff --git a/views/bootstrap/class.WorkflowMgr.php b/views/bootstrap/class.WorkflowMgr.php index d7f9be7b5..70420f630 100644 --- a/views/bootstrap/class.WorkflowMgr.php +++ b/views/bootstrap/class.WorkflowMgr.php @@ -121,6 +121,7 @@ $(document).ready(function() { $user = $this->params['user']; $workflows = $this->params['allworkflows']; $workflowstates = $this->params['allworkflowstates']; + $enablehiddenrevapp = $this->params['enablehiddenrevapp']; if($workflow) { $path = $workflow->checkForCycles(); @@ -295,6 +296,7 @@ $(document).ready(function() { echo "";