| @@ 121-127 (lines=7) @@ | ||
| 118 | ); |
|
| 119 | ||
| 120 | // セッションから検索条件を復元 |
|
| 121 | if (count($searchData['sex']) > 0) { |
|
| 122 | $sex_ids = array(); |
|
| 123 | foreach ($searchData['sex'] as $Sex) { |
|
| 124 | $sex_ids[] = $Sex->getId(); |
|
| 125 | } |
|
| 126 | $searchData['sex'] = $app['eccube.repository.master.sex']->findBy(array('id' => $sex_ids)); |
|
| 127 | } |
|
| 128 | ||
| 129 | if (!is_null($searchData['pref'])) { |
|
| 130 | $searchData['pref'] = $app['eccube.repository.master.pref']->find($searchData['pref']->getId()); |
|
| @@ 140-146 (lines=7) @@ | ||
| 137 | if (!empty($searchData['status'])) { |
|
| 138 | $searchData['status'] = $app['eccube.repository.master.order_status']->find($searchData['status']); |
|
| 139 | } |
|
| 140 | if (count($searchData['sex']) > 0) { |
|
| 141 | $sex_ids = array(); |
|
| 142 | foreach ($searchData['sex'] as $Sex) { |
|
| 143 | $sex_ids[] = $Sex->getId(); |
|
| 144 | } |
|
| 145 | $searchData['sex'] = $app['eccube.repository.master.sex']->findBy(array('id' => $sex_ids)); |
|
| 146 | } |
|
| 147 | if (count($searchData['payment']) > 0) { |
|
| 148 | $payment_ids = array(); |
|
| 149 | foreach ($searchData['payment'] as $Payment) { |
|
| @@ 147-153 (lines=7) @@ | ||
| 144 | } |
|
| 145 | $searchData['sex'] = $app['eccube.repository.master.sex']->findBy(array('id' => $sex_ids)); |
|
| 146 | } |
|
| 147 | if (count($searchData['payment']) > 0) { |
|
| 148 | $payment_ids = array(); |
|
| 149 | foreach ($searchData['payment'] as $Payment) { |
|
| 150 | $payment_ids[] = $Payment->getId(); |
|
| 151 | } |
|
| 152 | $searchData['payment'] = $app['eccube.repository.payment']->findBy(array('id' => $payment_ids)); |
|
| 153 | } |
|
| 154 | $searchForm->setData($searchData); |
|
| 155 | } |
|
| 156 | } |
|
| @@ 154-160 (lines=7) @@ | ||
| 151 | $searchData['category_id'] = $app['eccube.repository.category']->find($searchData['category_id']); |
|
| 152 | } |
|
| 153 | if (empty($status)) { |
|
| 154 | if (count($searchData['status']) > 0) { |
|
| 155 | $status_ids = array(); |
|
| 156 | foreach ($searchData['status'] as $Status) { |
|
| 157 | $status_ids[] = $Status->getId(); |
|
| 158 | } |
|
| 159 | $searchData['status'] = $app['eccube.repository.master.disp']->findBy(array('id' => $status_ids)); |
|
| 160 | } |
|
| 161 | $searchData['link_status'] = null; |
|
| 162 | $searchData['stock_status'] = null; |
|
| 163 | } |
|