@@ 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 | } |
@@ 151-157 (lines=7) @@ | ||
148 | $searchData['category_id'] = $app['eccube.repository.category']->find($searchData['category_id']); |
|
149 | } |
|
150 | if (empty($status)) { |
|
151 | if (count($searchData['status']) > 0) { |
|
152 | $status_ids = array(); |
|
153 | foreach ($searchData['status'] as $Status) { |
|
154 | $status_ids[] = $Status->getId(); |
|
155 | } |
|
156 | $searchData['status'] = $app['eccube.repository.master.disp']->findBy(array('id' => $status_ids)); |
|
157 | } |
|
158 | $searchData['link_status'] = null; |
|
159 | $searchData['stock_status'] = null; |
|
160 | } |