HOR-3365 conflict resolution

This commit is contained in:
u1
2017-08-07 23:52:32 -04:00
parent f70b763b30
commit 2240773cba
3 changed files with 14 additions and 4 deletions

View File

@@ -351,8 +351,12 @@ class WebEntryEvent
$process->throwExceptionIfNotExistsUser($arrayData["USR_UID"], $this->arrayFieldNameForException["userUid"]);
}
if ($arrayData["WE_TYPE"] === "SINGLE" && empty($arrayData["DYN_UID"])) {
throw new \Exception(\G::LoadTranslation("ID_SELECT_DYNAFORM_USE_IN_CASE"));
}
if ($arrayData["WE_CALLBACK"] === "CUSTOM" && empty($arrayData["WE_CALLBACK_URL"])) {
throw new \Exception(\G::LoadTranslation("ENTER_VALID_URL"));
throw new \Exception(\G::LoadTranslation("ID_ENTER_VALID_URL"));
}
} catch (\Exception $e) {
throw $e;