@@ -158,9 +158,11 @@ |
||
158 | 158 | $params = $view->param( 'filter', [] ); |
159 | 159 | $prodIds = (array) $view->param( 'filter/s_prodid', [] ); |
160 | 160 | |
161 | - if( isset( $params['s_prodcode'] ) ) // backwards compatibility |
|
161 | + if( isset( $params['s_prodcode'] ) ) { |
|
162 | + // backwards compatibility |
|
162 | 163 | { |
163 | 164 | $manager = \Aimeos\MShop::create( $this->getContext(), 'product' ); |
165 | + } |
|
164 | 166 | $filter = $manager->filter() |
165 | 167 | ->slice( 0, count( (array) $params['s_prodcode'] ) ) |
166 | 168 | ->add( ['product.code' => $view->param( 'filter/s_prodcode' )] ); |
@@ -81,8 +81,7 @@ |
||
81 | 81 | */ |
82 | 82 | $tplconf = 'client/jsonapi/product/template-aggregate'; |
83 | 83 | $default = 'aggregate-standard'; |
84 | - } |
|
85 | - else |
|
84 | + } else |
|
86 | 85 | { |
87 | 86 | /** client/jsonapi/product/template |
88 | 87 | * Relative path to the product JSON API template |
@@ -225,8 +225,7 @@ |
||
225 | 225 | */ |
226 | 226 | $tplconf = 'client/jsonapi/review/template-aggregate'; |
227 | 227 | $default = 'aggregate-standard'; |
228 | - } |
|
229 | - else |
|
228 | + } else |
|
230 | 229 | { |
231 | 230 | /** client/jsonapi/review/template |
232 | 231 | * Relative path to the review JSON API template |
@@ -48,8 +48,7 @@ |
||
48 | 48 | { |
49 | 49 | $view->items = $cntl->get( $id ); |
50 | 50 | $view->total = 1; |
51 | - } |
|
52 | - else |
|
51 | + } else |
|
53 | 52 | { |
54 | 53 | $total = 0; |
55 | 54 | $items = $cntl->sort( $view->param( 'sort', '-order.id' ) ) |