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