mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 21:16:07 +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;
|
$document = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($_GET['transition']) && $_GET['transition']) {
|
$transitions = array();
|
||||||
$transition = $dms->getWorkflowTransition($_GET['transition']);
|
if(isset($_GET['transitions']) && $_GET['transitions']) {
|
||||||
if (is_bool($transition)) {
|
foreach($_GET['transitions'] as $tr) {
|
||||||
UI::exitError(getMLText("admin_tools"),getMLText("internal_error"));
|
$transition = $dms->getWorkflowTransition($tr);
|
||||||
|
if ($transition)
|
||||||
|
$transitions[] = $transition;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
$transition = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
||||||
if($view) {
|
if($view) {
|
||||||
$view->setParam('workflow', $workflow);
|
$view->setParam('workflow', $workflow);
|
||||||
$view->setParam('transition', $transition);
|
$view->setParam('transitions', $transitions);
|
||||||
$view->setParam('document', $document);
|
$view->setParam('document', $document);
|
||||||
$view($_GET);
|
$view($_GET);
|
||||||
exit;
|
exit;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user