return list of approvals even if empty

This commit is contained in:
Uwe Steinmann 2019-02-12 12:12:11 +01:00
parent fb6a552381
commit 5cb159ca82

View File

@ -40,11 +40,11 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style {
$dms = $this->params['dms'];
$user = $this->params['user'];
$workflowmode = $this->params['workflowmode'];
if($workflowmode == 'traditional')
$tasks['review'] = array();
elseif($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval')
if($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') {
$tasks['approval'] = array();
elseif($workflowmode == 'advanced')
if($workflowmode == 'traditional')
$tasks['review'] = array();
} elseif($workflowmode == 'advanced')
$tasks['workflow'] = array();
if($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') {