| @@ 500-522 (lines=23) @@ | ||
| 497 | $page_count = $app['config']['default_page_count']; |
|
| 498 | $session = $app['session']; |
|
| 499 | ||
| 500 | if ('POST' === $request->getMethod()) { |
|
| 501 | ||
| 502 | $page_no = 1; |
|
| 503 | ||
| 504 | $searchData = array( |
|
| 505 | 'id' => $request->get('id'), |
|
| 506 | ); |
|
| 507 | ||
| 508 | if ($categoryId = $request->get('category_id')) { |
|
| 509 | $Category = $app['eccube.repository.category']->find($categoryId); |
|
| 510 | $searchData['category_id'] = $Category; |
|
| 511 | } |
|
| 512 | ||
| 513 | $session->set('eccube.admin.order.product.search', $searchData); |
|
| 514 | $session->set('eccube.admin.order.product.search.page_no', $page_no); |
|
| 515 | } else { |
|
| 516 | $searchData = (array)$session->get('eccube.admin.order.product.search'); |
|
| 517 | if (is_null($page_no)) { |
|
| 518 | $page_no = intval($session->get('eccube.admin.order.product.search.page_no')); |
|
| 519 | } else { |
|
| 520 | $session->set('eccube.admin.order.product.search.page_no', $page_no); |
|
| 521 | } |
|
| 522 | } |
|
| 523 | ||
| 524 | $qb = $app['eccube.repository.product'] |
|
| 525 | ->getQueryBuilderBySearchDataForAdmin($searchData); |
|
| @@ 240-262 (lines=23) @@ | ||
| 237 | $page_count = $app['config']['default_page_count']; |
|
| 238 | $session = $app['session']; |
|
| 239 | ||
| 240 | if ('POST' === $request->getMethod()) { |
|
| 241 | ||
| 242 | $page_no = 1; |
|
| 243 | ||
| 244 | $searchData = array( |
|
| 245 | 'id' => $request->get('id'), |
|
| 246 | ); |
|
| 247 | ||
| 248 | if ($categoryId = $request->get('category_id')) { |
|
| 249 | $Category = $app['eccube.repository.category']->find($categoryId); |
|
| 250 | $searchData['category_id'] = $Category; |
|
| 251 | } |
|
| 252 | ||
| 253 | $session->set('eccube.admin.order.product.search', $searchData); |
|
| 254 | $session->set('eccube.admin.order.product.search.page_no', $page_no); |
|
| 255 | } else { |
|
| 256 | $searchData = (array)$session->get('eccube.admin.order.product.search'); |
|
| 257 | if (is_null($page_no)) { |
|
| 258 | $page_no = intval($session->get('eccube.admin.order.product.search.page_no')); |
|
| 259 | } else { |
|
| 260 | $session->set('eccube.admin.order.product.search.page_no', $page_no); |
|
| 261 | } |
|
| 262 | } |
|
| 263 | // TODO ShipmentItemRepository に移動 |
|
| 264 | $qb = $app['eccube.repository.shipment_item']->createQueryBuilder('s') |
|
| 265 | ->where('s.Shipping is null AND s.Order is not null') |
|