@@ 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()); |
@@ 148-154 (lines=7) @@ | ||
145 | if (!empty($searchData['status'])) { |
|
146 | $searchData['status'] = $app['eccube.repository.master.order_status']->find($searchData['status']); |
|
147 | } |
|
148 | if (count($searchData['sex']) > 0) { |
|
149 | $sex_ids = array(); |
|
150 | foreach ($searchData['sex'] as $Sex) { |
|
151 | $sex_ids[] = $Sex->getId(); |
|
152 | } |
|
153 | $searchData['sex'] = $app['eccube.repository.master.sex']->findBy(array('id' => $sex_ids)); |
|
154 | } |
|
155 | if (count($searchData['payment']) > 0) { |
|
156 | $payment_ids = array(); |
|
157 | foreach ($searchData['payment'] as $Payment) { |
|
@@ 155-161 (lines=7) @@ | ||
152 | } |
|
153 | $searchData['sex'] = $app['eccube.repository.master.sex']->findBy(array('id' => $sex_ids)); |
|
154 | } |
|
155 | if (count($searchData['payment']) > 0) { |
|
156 | $payment_ids = array(); |
|
157 | foreach ($searchData['payment'] as $Payment) { |
|
158 | $payment_ids[] = $Payment->getId(); |
|
159 | } |
|
160 | $searchData['payment'] = $app['eccube.repository.payment']->findBy(array('id' => $payment_ids)); |
|
161 | } |
|
162 | $searchForm->setData($searchData); |
|
163 | } |
|
164 | } |
@@ 161-167 (lines=7) @@ | ||
158 | $searchData['category_id'] = $app['eccube.repository.category']->find($searchData['category_id']); |
|
159 | } |
|
160 | if (empty($status)) { |
|
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 | $searchData['link_status'] = null; |
|
169 | $searchData['stock_status'] = null; |
|
170 | } |