-3 && $code <4) || !isset($workflowstates[$code])) { $fixedstate=true; } $workflowstate=$workflowstates[$code]; } if (getval("submitted","")!="" && enforcePostRequest(getval("ajax", false))) { if ($name=="") { $errortext=$lang["rse_workflow_state_check_fields"]; } if($errortext=="") { if($code=="new") { rse_workflow_create_state([ 'name' => $name, 'notify_group' => $notify_group, 'more_notes_flag' => $more_notes, 'notify_user_flag' => $notify_user, 'email_from' => '', 'bcc_admin' => $rse_workflow_bcc_admin, 'simple_search_flag' => $simple_search, 'icon' => $icon, ]); } else { ps_query(" UPDATE archive_states SET name = ?, notify_group = ?, more_notes_flag = ?, notify_user_flag = ?, email_from = '', bcc_admin = ?, simple_search_flag = ?, icon = ? WHERE code = ?", [ "s",$name, "i",$notify_group, "i",$more_notes, "i",$notify_user, "i",$rse_workflow_bcc_admin, "i",$simple_search, "s",$icon, "i",$code, ] ); } clear_query_cache("workflow"); $saved=true; } $workflowstate["name"]=$name; $workflowstate["notify_group"]=$notify_group; $workflowstate['more_notes_flag']=$more_notes; $workflowstate['notify_user_flag']=$notify_user; $workflowstate["rse_workflow_email_from"]=''; $workflowstate["rse_workflow_bcc_admin"]=$rse_workflow_bcc_admin; $workflowstate["simple_search_flag"] = $simple_search; $workflowstate["icon"] = $icon; } include '../../../include/header.php'; ?>

$lang["systemsetup"], 'href' => $baseurl_short . "pages/admin/admin_home.php", 'menu' => true ), array( 'title' => $lang["rse_workflow_manage_workflow"], 'href' => $baseurl_short . "plugins/rse_workflow/pages/edit_workflow.php" ), array( 'title' => $lang["rse_workflow_manage_states"], 'href' => $baseurl_short . "plugins/rse_workflow/pages/edit_workflow_states.php" ), array( 'title' => $lang["rse_workflow_edit_state"] ) ); renderBreadcrumbs($links_trail); ?>
" . $lang['saved'] . ""; } $workflowstate_url = generateURL($baseurl_short."plugins/rse_workflow/pages/edit_state.php",["code"=>$code]); ?>
"> " />
>
>
>
"; } else{ ?>
>
  " onclick="event.preventDefault();CentralSpacePost(document.getElementById('form_workflow_state'),true);"/>