src/Eccube/Controller/Admin/Shipping/ShippingController.php 1 location
|
@@ 121-146 (lines=26) @@
|
| 118 |
|
|
| 119 |
|
$searchForm->handleRequest($request); |
| 120 |
|
|
| 121 |
|
if ($searchForm->isValid()) { |
| 122 |
|
$searchData = $searchForm->getData(); |
| 123 |
|
|
| 124 |
|
// paginator |
| 125 |
|
$qb = $this->shippingRepository->getQueryBuilderBySearchDataForAdmin($searchData); |
| 126 |
|
|
| 127 |
|
$event = new EventArgs( |
| 128 |
|
array( |
| 129 |
|
'form' => $searchForm, |
| 130 |
|
'qb' => $qb, |
| 131 |
|
), |
| 132 |
|
$request |
| 133 |
|
); |
| 134 |
|
$this->eventDispatcher->dispatch(EccubeEvents::ADMIN_ORDER_INDEX_SEARCH, $event); |
| 135 |
|
|
| 136 |
|
$page_no = 1; |
| 137 |
|
$pagination = $app['paginator']()->paginate( |
| 138 |
|
$qb, |
| 139 |
|
$page_no, |
| 140 |
|
$page_count |
| 141 |
|
); |
| 142 |
|
|
| 143 |
|
// sessionのデータ保持 |
| 144 |
|
$session->set('eccube.admin.shipping.search', $searchData); |
| 145 |
|
$session->set('eccube.admin.shipping.search.page_no', $page_no); |
| 146 |
|
} |
| 147 |
|
} else { |
| 148 |
|
if (is_null($page_no) && $request->get('resume') != Constant::ENABLED) { |
| 149 |
|
// sessionを削除 |
src/Eccube/Controller/Admin/Customer/CustomerController.php 1 location
|
@@ 151-176 (lines=26) @@
|
| 148 |
|
|
| 149 |
|
$searchForm->handleRequest($request); |
| 150 |
|
|
| 151 |
|
if ($searchForm->isValid()) { |
| 152 |
|
$searchData = $searchForm->getData(); |
| 153 |
|
|
| 154 |
|
// paginator |
| 155 |
|
$qb = $this->customerRepository->getQueryBuilderBySearchData($searchData); |
| 156 |
|
$page_no = 1; |
| 157 |
|
|
| 158 |
|
$event = new EventArgs( |
| 159 |
|
array( |
| 160 |
|
'form' => $searchForm, |
| 161 |
|
'qb' => $qb, |
| 162 |
|
), |
| 163 |
|
$request |
| 164 |
|
); |
| 165 |
|
$this->eventDispatcher->dispatch(EccubeEvents::ADMIN_CUSTOMER_INDEX_SEARCH, $event); |
| 166 |
|
|
| 167 |
|
$pagination = $app['paginator']()->paginate( |
| 168 |
|
$qb, |
| 169 |
|
$page_no, |
| 170 |
|
$page_count |
| 171 |
|
); |
| 172 |
|
|
| 173 |
|
// sessionのデータ保持 |
| 174 |
|
$session->set('eccube.admin.customer.search', $searchData); |
| 175 |
|
$session->set('eccube.admin.customer.search.page_no', $page_no); |
| 176 |
|
} |
| 177 |
|
} else { |
| 178 |
|
if (is_null($page_no) && $request->get('resume') != Constant::ENABLED) { |
| 179 |
|
// sessionを削除 |
src/Eccube/Controller/Admin/Order/OrderController.php 1 location
|
@@ 167-192 (lines=26) @@
|
| 164 |
|
|
| 165 |
|
$searchForm->handleRequest($request); |
| 166 |
|
|
| 167 |
|
if ($searchForm->isValid()) { |
| 168 |
|
$searchData = $searchForm->getData(); |
| 169 |
|
|
| 170 |
|
// paginator |
| 171 |
|
$qb = $this->orderRepository->getQueryBuilderBySearchDataForAdmin($searchData); |
| 172 |
|
|
| 173 |
|
$event = new EventArgs( |
| 174 |
|
array( |
| 175 |
|
'form' => $searchForm, |
| 176 |
|
'qb' => $qb, |
| 177 |
|
), |
| 178 |
|
$request |
| 179 |
|
); |
| 180 |
|
$this->eventDispatcher->dispatch(EccubeEvents::ADMIN_ORDER_INDEX_SEARCH, $event); |
| 181 |
|
|
| 182 |
|
$page_no = 1; |
| 183 |
|
$pagination = $app['paginator']()->paginate( |
| 184 |
|
$qb, |
| 185 |
|
$page_no, |
| 186 |
|
$page_count |
| 187 |
|
); |
| 188 |
|
|
| 189 |
|
// sessionのデータ保持 |
| 190 |
|
$session->set('eccube.admin.order.search', $searchData); |
| 191 |
|
$session->set('eccube.admin.order.search.page_no', $page_no); |
| 192 |
|
} |
| 193 |
|
} else { |
| 194 |
|
if (is_null($page_no) && $request->get('resume') != Constant::ENABLED) { |
| 195 |
|
// sessionを削除 |