| @@ 128-134 (lines=7) @@ | ||
| 125 | ); |
|
| 126 | ||
| 127 | // セッションから検索条件を復元 |
|
| 128 | if (count($searchData['sex']) > 0) { |
|
| 129 | $sex_ids = array(); |
|
| 130 | foreach ($searchData['sex'] as $Sex) { |
|
| 131 | $sex_ids[] = $Sex->getId(); |
|
| 132 | } |
|
| 133 | $searchData['sex'] = $app['eccube.repository.master.sex']->findBy(array('id' => $sex_ids)); |
|
| 134 | } |
|
| 135 | ||
| 136 | if (!is_null($searchData['pref'])) { |
|
| 137 | $searchData['pref'] = $app['eccube.repository.master.pref']->find($searchData['pref']->getId()); |
|
| @@ 161-167 (lines=7) @@ | ||
| 158 | $searchData['category_id'] = $app['eccube.repository.category']->find($searchData['category_id']); |
|
| 159 | } |
|
| 160 | // セッションから検索条件を復元(スーテタス) |
|
| 161 | if (count($searchData['status']) > 0) { |
|
| 162 | $status_ids = array(); |
|
| 163 | foreach ($searchData['status'] as $Status) { |
|
| 164 | $status_ids[] = $Status->getId(); |
|
| 165 | } |
|
| 166 | $searchData['status'] = $app['eccube.repository.master.disp']->findBy(array('id' => $status_ids)); |
|
| 167 | } |
|
| 168 | ||
| 169 | $searchForm->setData($searchData); |
|
| 170 | } |
|
| @@ 155-161 (lines=7) @@ | ||
| 152 | } |
|
| 153 | $searchData['multi_status'] = $app['eccube.repository.master.order_status']->findBy(array('id' => $statusIds)); |
|
| 154 | } |
|
| 155 | if (count($searchData['sex']) > 0) { |
|
| 156 | $sex_ids = array(); |
|
| 157 | foreach ($searchData['sex'] as $Sex) { |
|
| 158 | $sex_ids[] = $Sex->getId(); |
|
| 159 | } |
|
| 160 | $searchData['sex'] = $app['eccube.repository.master.sex']->findBy(array('id' => $sex_ids)); |
|
| 161 | } |
|
| 162 | if (count($searchData['payment']) > 0) { |
|
| 163 | $payment_ids = array(); |
|
| 164 | foreach ($searchData['payment'] as $Payment) { |
|
| @@ 162-168 (lines=7) @@ | ||
| 159 | } |
|
| 160 | $searchData['sex'] = $app['eccube.repository.master.sex']->findBy(array('id' => $sex_ids)); |
|
| 161 | } |
|
| 162 | if (count($searchData['payment']) > 0) { |
|
| 163 | $payment_ids = array(); |
|
| 164 | foreach ($searchData['payment'] as $Payment) { |
|
| 165 | $payment_ids[] = $Payment->getId(); |
|
| 166 | } |
|
| 167 | $searchData['payment'] = $app['eccube.repository.payment']->findBy(array('id' => $payment_ids)); |
|
| 168 | } |
|
| 169 | $searchForm->setData($searchData); |
|
| 170 | } |
|
| 171 | } |
|