mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
no need to pass document status to addWorkflowAction()
This commit is contained in:
parent
4187b78053
commit
6e852f4eac
|
@ -44,13 +44,12 @@ if ($action == "addworkflowaction") {
|
|||
}
|
||||
|
||||
$name = $_POST["name"];
|
||||
$docstatus = $_POST["docstatus"];
|
||||
|
||||
if (is_object($dms->getWorkflowActionByName($name))) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("workflow_action_exists"));
|
||||
}
|
||||
|
||||
$newWorkflowaction = $dms->addWorkflowAction($name, $docstatus);
|
||||
$newWorkflowaction = $dms->addWorkflowAction($name);
|
||||
if (!$newWorkflowaction) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user