mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
add operation for saving workflow layout (not ready yet)
This commit is contained in:
parent
9604a4548d
commit
4d6ce5114a
|
@ -133,7 +133,28 @@ else if ($action == "editworkflow") {
|
|||
$editedWorkflow->setInitState($state);
|
||||
|
||||
add_log_line(".php&action=editworkflow&workflowid=".$workflowid);
|
||||
}
|
||||
|
||||
// save workflow graph for rendering -----------------------------------------
|
||||
else if ($action == "setrenderdata") {
|
||||
if (!isset($_POST["workflowid"]) || !is_numeric($_POST["workflowid"]) || intval($_POST["workflowid"])<1) {
|
||||
echo json_encode(array('success'=>false, 'message'=>getMLText("invalid_workflow_id")));
|
||||
exit;
|
||||
}
|
||||
|
||||
$workflowid=$_POST["workflowid"];
|
||||
$workflow = $dms->getWorkflow($workflowid);
|
||||
|
||||
if (!is_object($workflow)) {
|
||||
echo json_encode(array('success'=>false, 'message'=>getMLText("invalid_workflow_id")));
|
||||
exit;
|
||||
}
|
||||
|
||||
$data = $_POST["data"];
|
||||
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode(array('success'=>true, 'message'=>getMLText("workflow_layoutdata_saved")));
|
||||
exit;
|
||||
}
|
||||
else UI::exitError(getMLText("admin_tools"),getMLText("unknown_command"));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user