Merged in bugfix/HOR-3366 (pull request #5777)

HOR-3366

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
Approved-by: Paula Quispe <paula.quispe@processmaker.com>
This commit is contained in:
Roly
2017-08-02 21:19:04 +00:00
committed by Paula Quispe
3 changed files with 12 additions and 1 deletions

View File

@@ -350,6 +350,10 @@ class WebEntryEvent
if (!empty($arrayData["USR_UID"])) {
$process->throwExceptionIfNotExistsUser($arrayData["USR_UID"], $this->arrayFieldNameForException["userUid"]);
}
if ($arrayData["WE_CALLBACK"] === "CUSTOM" && empty($arrayData["WE_CALLBACK_URL"])) {
throw new \Exception(\G::LoadTranslation("ENTER_VALID_URL"));
}
} catch (\Exception $e) {
throw $e;
}