| @@ 506-528 (lines=23) @@ | ||
| 503 | $page_count = $app['config']['default_page_count']; |
|
| 504 | $session = $app['session']; |
|
| 505 | ||
| 506 | if ('POST' === $request->getMethod()) { |
|
| 507 | ||
| 508 | $page_no = 1; |
|
| 509 | ||
| 510 | $searchData = array( |
|
| 511 | 'id' => $request->get('id'), |
|
| 512 | ); |
|
| 513 | ||
| 514 | if ($categoryId = $request->get('category_id')) { |
|
| 515 | $Category = $app['eccube.repository.category']->find($categoryId); |
|
| 516 | $searchData['category_id'] = $Category; |
|
| 517 | } |
|
| 518 | ||
| 519 | $session->set('eccube.admin.order.product.search', $searchData); |
|
| 520 | $session->set('eccube.admin.order.product.search.page_no', $page_no); |
|
| 521 | } else { |
|
| 522 | $searchData = (array)$session->get('eccube.admin.order.product.search'); |
|
| 523 | if (is_null($page_no)) { |
|
| 524 | $page_no = intval($session->get('eccube.admin.order.product.search.page_no')); |
|
| 525 | } else { |
|
| 526 | $session->set('eccube.admin.order.product.search.page_no', $page_no); |
|
| 527 | } |
|
| 528 | } |
|
| 529 | ||
| 530 | $qb = $app['eccube.repository.product'] |
|
| 531 | ->getQueryBuilderBySearchDataForAdmin($searchData); |
|
| @@ 268-290 (lines=23) @@ | ||
| 265 | $page_count = $app['config']['default_page_count']; |
|
| 266 | $session = $app['session']; |
|
| 267 | ||
| 268 | if ('POST' === $request->getMethod()) { |
|
| 269 | ||
| 270 | $page_no = 1; |
|
| 271 | ||
| 272 | $searchData = array( |
|
| 273 | 'id' => $request->get('id'), |
|
| 274 | ); |
|
| 275 | ||
| 276 | if ($categoryId = $request->get('category_id')) { |
|
| 277 | $Category = $app['eccube.repository.category']->find($categoryId); |
|
| 278 | $searchData['category_id'] = $Category; |
|
| 279 | } |
|
| 280 | ||
| 281 | $session->set('eccube.admin.order.product.search', $searchData); |
|
| 282 | $session->set('eccube.admin.order.product.search.page_no', $page_no); |
|
| 283 | } else { |
|
| 284 | $searchData = (array)$session->get('eccube.admin.order.product.search'); |
|
| 285 | if (is_null($page_no)) { |
|
| 286 | $page_no = intval($session->get('eccube.admin.order.product.search.page_no')); |
|
| 287 | } else { |
|
| 288 | $session->set('eccube.admin.order.product.search.page_no', $page_no); |
|
| 289 | } |
|
| 290 | } |
|
| 291 | // TODO ShipmentItemRepository に移動 |
|
| 292 | $qb = $app['eccube.repository.shipment_item']->createQueryBuilder('s') |
|
| 293 | ->where('s.Shipping is null AND s.Order is not null') |
|