/** * Process 'no action' * * @return void */ protected function doNoAction() { parent::doNoAction(); if (\XLite\Core\Request::getInstance()->fast_search) { // Clear stored search conditions \XLite\Core\Session::getInstance()->{$this->getSessionCellName()} = array(); $this->prepareSearchParams(); // Get ItemsList widget $widget = new \XLite\View\ItemsList\Model\Order\Admin\Search(); // Search for single order $entity = $widget->searchForSingleEntity(); if ($entity && $entity instanceof \XLite\Model\Order) { // Prepare redirect to order page $url = $this->buildURL('order', '', array('order_number' => $entity->getOrderNumber())); $this->setReturnURL($url); } } }
/** * Process 'no action' * * @return void */ protected function doNoAction() { parent::doNoAction(); if (\XLite\Core\Request::getInstance()->fast_search) { // Refresh search parameters from request \XLite\Core\Session::getInstance()->{\XLite\View\ItemsList\Model\Profile::getSessionCellName()} = array(); \XLite\Core\Session::getInstance()->{\XLite\View\ItemsList\Model\Profile::getSessionCellName()} = $this->getSearchParams(); // Get ItemsList widget $widget = new \XLite\View\ItemsList\Model\Profile(); // Search for single profile $entity = $widget->searchForSingleEntity(); if ($entity && $entity instanceof \XLite\Model\Profile) { // Prepare redirect to profile page $url = $this->buildURL('profile', '', array('profile_id' => $entity->getProfileId())); $this->setReturnURL($url); } } }