...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/statistics/entity/contactactivitystatusstatistics.php
- Класс: Bitrix\Crm\Statistics\Entity\ContactActivityStatusStatisticsTable
- Вызов: ContactActivityStatusStatisticsTable::synchronize
static function synchronize($ownerID, array $data) { if(!is_int($ownerID)) { $ownerID = (int)$ownerID; } if($ownerID <= 0) { throw new Main\ArgumentException('Owner ID must be greater than zero.', 'ownerID'); } $userID = isset($data['RESPONSIBLE_ID']) ? (int)$data['RESPONSIBLE_ID'] : 0; Main\Application::getConnection()->queryExecute( "UPDATE b_crm_contact_act_sts_stat SET RESPONSIBLE_ID = {$userID} WHERE OWNER_ID = {$ownerID}" ); }