mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 23:24:57 +00:00
various corrections
This commit is contained in:
parent
613bf9387c
commit
6b7994363e
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue
Block a user