no need to pass document status to addWorkflowAction()

This commit is contained in:
Uwe Steinmann 2015-05-04 07:01:51 +02:00
parent 4187b78053
commit 6e852f4eac

View File

@ -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"));
}