19 EventResult::UNDEFINED,
27 !is_array($modulesList)
28 || empty($modulesList)
34 $connection = \Bitrix\Main\HttpApplication::getConnection();
36 foreach($modulesList as $moduleId => $status)
38 if (!in_array($status, [
'Y',
'N']))
52 $sql =
"UPDATE b_sonet_log SET INACTIVE='".$inactive.
"' WHERE MODULE_ID in ('crm', 'crm_shared')";
55 $sql =
"UPDATE b_sonet_log SET INACTIVE='".$inactive.
"' WHERE EVENT_ID in ('timeman_entry', 'report')";
58 $sql =
"UPDATE b_sonet_log SET INACTIVE='".$inactive.
"' WHERE EVENT_ID = 'lists_new_element'";
65 $connection->query($sql);