check $settings->_enableHiddenRevApp

This commit is contained in:
Uwe Steinmann 2023-10-15 17:30:03 +02:00
parent 889f49daca
commit 45d00e5bd0
2 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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 "<select class=\"chzn-select\" name=\"users[]\" multiple=\"multiple\" data-placeholder=\"".getMLText('select_users')."\" data-no_results_text=\"".getMLText('unknown_user')."\">";
$allusers = $dms->getAllUsers();
foreach($allusers as $usr) {
if(!$enablehiddenrevapp && $usr->isHidden()) continue;
print "<option value=\"".$usr->getID()."\">". htmlspecialchars($usr->getLogin()." - ".$usr->getFullName())."</option>";
}
echo "</select>";