...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/agent/history/leadstatushistorywithsupposed.php
- Класс: Bitrix\Crm\Agent\History\LeadStatusHistoryWithSupposed
- Вызов: LeadStatusHistoryWithSupposed::getLastStoredLeadStatusHistoryId
private function getLastStoredLeadStatusHistoryId() { static $result = null; if (is_null($result)) { global $DB; $result = $DB->Query('SELECT LEAD_STATUS_HISTORY_ID FROM b_crm_last_stored_lead_status_history_id;'); $result = $result->fetch(); if (!empty($result['LEAD_STATUS_HISTORY_ID'])) { $result = (int)$result['LEAD_STATUS_HISTORY_ID']; } else { $result = 0; } } return $result; }