@@ -60,16 +60,14 @@ discard block |
||
60 | 60 | $type = $view->param( 'b_type', 'default' ); |
61 | 61 | $view->items = $this->controller->setType( $type )->clear()->get(); |
62 | 62 | $view->total = 1; |
63 | - } |
|
64 | - catch( \Aimeos\MShop\Exception $e ) |
|
63 | + } catch( \Aimeos\MShop\Exception $e ) |
|
65 | 64 | { |
66 | 65 | $status = 404; |
67 | 66 | $view->errors = array( array( |
68 | 67 | 'title' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ), |
69 | 68 | 'detail' => $e->getTraceAsString(), |
70 | 69 | ) ); |
71 | - } |
|
72 | - catch( \Exception $e ) |
|
70 | + } catch( \Exception $e ) |
|
73 | 71 | { |
74 | 72 | $status = 500; |
75 | 73 | $view->errors = array( array( |
@@ -100,24 +98,21 @@ discard block |
||
100 | 98 | { |
101 | 99 | $view->items = $this->controller->load( $id, $this->getParts( $view ) ); |
102 | 100 | $allow = false; |
103 | - } |
|
104 | - else |
|
101 | + } else |
|
105 | 102 | { |
106 | 103 | $view->items = $this->controller->setType( $view->param( 'b_type', 'default' ) )->get(); |
107 | 104 | } |
108 | 105 | |
109 | 106 | $view->total = 1; |
110 | 107 | $status = 200; |
111 | - } |
|
112 | - catch( \Aimeos\MShop\Exception $e ) |
|
108 | + } catch( \Aimeos\MShop\Exception $e ) |
|
113 | 109 | { |
114 | 110 | $status = 404; |
115 | 111 | $view->errors = array( array( |
116 | 112 | 'title' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ), |
117 | 113 | 'detail' => $e->getTraceAsString(), |
118 | 114 | ) ); |
119 | - } |
|
120 | - catch( \Exception $e ) |
|
115 | + } catch( \Exception $e ) |
|
121 | 116 | { |
122 | 117 | $status = 500; |
123 | 118 | $view->errors = array( array( |
@@ -156,16 +151,14 @@ discard block |
||
156 | 151 | $view->total = 1; |
157 | 152 | |
158 | 153 | $status = 200; |
159 | - } |
|
160 | - catch( \Aimeos\MShop\Exception $e ) |
|
154 | + } catch( \Aimeos\MShop\Exception $e ) |
|
161 | 155 | { |
162 | 156 | $status = 404; |
163 | 157 | $view->errors = array( array( |
164 | 158 | 'title' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ), |
165 | 159 | 'detail' => $e->getTraceAsString(), |
166 | 160 | ) ); |
167 | - } |
|
168 | - catch( \Exception $e ) |
|
161 | + } catch( \Exception $e ) |
|
169 | 162 | { |
170 | 163 | $status = 500; |
171 | 164 | $view->errors = array( array( |
@@ -197,16 +190,14 @@ discard block |
||
197 | 190 | $view->total = 1; |
198 | 191 | |
199 | 192 | $status = 200; |
200 | - } |
|
201 | - catch( \Aimeos\MShop\Exception $e ) |
|
193 | + } catch( \Aimeos\MShop\Exception $e ) |
|
202 | 194 | { |
203 | 195 | $status = 404; |
204 | 196 | $view->errors = array( array( |
205 | 197 | 'title' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ), |
206 | 198 | 'detail' => $e->getTraceAsString(), |
207 | 199 | ) ); |
208 | - } |
|
209 | - catch( \Exception $e ) |
|
200 | + } catch( \Exception $e ) |
|
210 | 201 | { |
211 | 202 | $status = 500; |
212 | 203 | $view->errors = array( array( |
@@ -268,7 +268,7 @@ |
||
268 | 268 | $baseManager = \Aimeos\MShop\Factory::createManager( $this->context, 'order/base' ); |
269 | 269 | |
270 | 270 | $search = $baseManager->createSearch(); |
271 | - $search->setConditions( $search->compare( '==', 'order.base.price', '672.00') ); |
|
271 | + $search->setConditions( $search->compare( '==', 'order.base.price', '672.00' ) ); |
|
272 | 272 | |
273 | 273 | $items = $baseManager->searchItems( $search ); |
274 | 274 |