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