Merged master into dashboards2
This commit is contained in:
@@ -325,7 +325,7 @@ class Task
|
||||
if (!isset($arrayProperty["TAS_DURATION"])) {
|
||||
throw (new \Exception("Invalid value specified for 'tas_duration'"));
|
||||
}
|
||||
$valuesTimeUnit = array('DAYS','HOURS');
|
||||
$valuesTimeUnit = array('DAYS','HOURS','MINUTES');
|
||||
if ((!isset($arrayProperty["TAS_TIMEUNIT"])) ||
|
||||
(!in_array($arrayProperty["TAS_TIMEUNIT"], $valuesTimeUnit))) {
|
||||
throw (new \Exception("Invalid value specified for 'tas_timeunit'"));
|
||||
|
||||
@@ -181,6 +181,31 @@ class Trigger
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
if (\PMLicensedFeatures::getSingleton()->verifyfeature("B0oWlBLY3hHdWY0YUNpZEtFQm5CeTJhQlIwN3IxMEkwaG4=") &&
|
||||
isset($dataTrigger["TRI_WEBBOT"])
|
||||
) {
|
||||
//Check disabled code
|
||||
\G::LoadClass("codeScanner");
|
||||
|
||||
$arraySystemConfiguration = \System::getSystemConfiguration(PATH_CONFIG . "env.ini");
|
||||
|
||||
$cs = new \CodeScanner((isset($arraySystemConfiguration["enable_blacklist"]) && (int)($arraySystemConfiguration["enable_blacklist"]) == 1)? "DISABLED_CODE" : "");
|
||||
|
||||
$arrayFoundDisabledCode = $cs->checkDisabledCode("SOURCE", $dataTrigger["TRI_WEBBOT"]);
|
||||
|
||||
if (!empty($arrayFoundDisabledCode)) {
|
||||
$strCodeAndLine = "";
|
||||
|
||||
foreach ($arrayFoundDisabledCode["source"] as $key => $value) {
|
||||
$strCodeAndLine .= (($strCodeAndLine != "")? ", " : "") . \G::LoadTranslation("ID_DISABLED_CODE_CODE_AND_LINE", array($key, implode(", ", $value)));
|
||||
}
|
||||
|
||||
throw new \Exception(\G::LoadTranslation("ID_DISABLED_CODE_TRIGGER", array($strCodeAndLine)));
|
||||
}
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
$dataTrigger['PRO_UID'] = $sProcessUID;
|
||||
$oTrigger = new \Triggers();
|
||||
if ($create) {
|
||||
|
||||
Reference in New Issue
Block a user