mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
pass list of transitions to workflow graph
This commit is contained in:
parent
e3084bb63c
commit
22dbfc9a32
|
@ -39,20 +39,20 @@ if(isset($_GET['documentid']) && $_GET['documentid']) {
|
|||
$document = null;
|
||||
}
|
||||
|
||||
if(isset($_GET['transition']) && $_GET['transition']) {
|
||||
$transition = $dms->getWorkflowTransition($_GET['transition']);
|
||||
if (is_bool($transition)) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("internal_error"));
|
||||
$transitions = array();
|
||||
if(isset($_GET['transitions']) && $_GET['transitions']) {
|
||||
foreach($_GET['transitions'] as $tr) {
|
||||
$transition = $dms->getWorkflowTransition($tr);
|
||||
if ($transition)
|
||||
$transitions[] = $transition;
|
||||
}
|
||||
} else {
|
||||
$transition = null;
|
||||
}
|
||||
|
||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
||||
if($view) {
|
||||
$view->setParam('workflow', $workflow);
|
||||
$view->setParam('transition', $transition);
|
||||
$view->setParam('transitions', $transitions);
|
||||
$view->setParam('document', $document);
|
||||
$view($_GET);
|
||||
exit;
|
||||
|
|
Loading…
Reference in New Issue
Block a user