Files
luos/workflow/engine/methods/cases/CaseSchedulerCreateUpdate.php
Paula V. Quispe c3fb995759 HOR-1471
HOR-1471

HOR-1471
2016-07-28 15:48:28 -04:00

23 lines
752 B
PHP

<?php
try {
if (!$_POST || count($_POST) == 0) {
throw new Exception("The information sent is empty.");
}
$prossesUid = trim($_POST["form"]["PRO_UID"]);
$caseSchedulerUid = trim($_POST["form"]["SCH_UID"]);
$caseScheduler = new \ProcessMaker\BusinessModel\CaseScheduler();
$caseScheduler->createUpdate($caseSchedulerUid, $prossesUid, $_SESSION["USER_LOGGED"], $_POST["form"], (isset($_POST["pluginFields"]))? $_POST["pluginFields"] : array());
G::header("Location: cases_Scheduler_List?PRO_UID=" . $prossesUid);
} catch (Exception $e) {
$token = strtotime("now");
PMException::registerErrorLog($e, $token);
G::outRes( G::LoadTranslation("ID_EXCEPTION_LOG_INTERFAZ", array($token)) );
exit(0);
}