various corrections

This commit is contained in:
Uwe Steinmann 2018-06-26 07:02:12 +02:00
parent 613bf9387c
commit 6b7994363e

View File

@ -351,9 +351,6 @@ $(document).ready(function() {
}
if($workflowmode == 'advanced') {
?>
<div class="cbSelectTitle"><?php printMLText("workflow");?>:</div>
<?php
$mandatoryworkflows = $user->getMandatoryWorkflows();
if($mandatoryworkflows) {
if(count($mandatoryworkflows) == 1) {
@ -367,25 +364,26 @@ $(document).ready(function() {
$options[] = array($workflow->getID(), htmlspecialchars($workflow->getName()));
}
$this->formField(
getMLText("owner"),
getMLText("workflow"),
array(
'element'=>'select',
'id'=>'workflow',
'name'=>'workflow',
'class'=>'chzn-select',
'attributes'=>array(array('data-allow-clear', 'true'), array('data-placeholder', getMLText('select_workflow'))),
'attributes'=>array(array('data-placeholder', getMLText('select_workflow'))),
'options'=>$options
)
);
}
} else {
$options = array();
$options[] = array('', '');
$workflows=$dms->getAllWorkflows();
foreach ($workflows as $workflow) {
$options[] = array($workflow->getID(), htmlspecialchars($workflow->getName()));
}
$this->formField(
getMLText("owner"),
getMLText("workflow"),
array(
'element'=>'select',
'id'=>'workflow',