...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/webform/internals/pagenavigation.php
- Класс: Bitrix\Crm\WebForm\Internals\PageNavigation
- Вызов: PageNavigation::initFromUri
public function initFromUri() { parent::initFromUri(); $page = $this->currentPage; $request = Application::getInstance()->getContext()->getRequest(); if ($request->get('apply_filter') === 'Y') { $page = 1; } if (!$page && $request->get('grid_action') === 'pagination') { $page = 1; } if ($page > 0) { $this->setSessionVar($page, $this->allRecords); } else { $page = $this->getSessionVar()['page'] ?? 1; } $page = $page > 0 ? $page : 1; $this->setCurrentPage($page); $this->allRecords = $this->getSessionVar()['allRecords'] ?? false; }