@@ -88,14 +88,12 @@ discard block |
||
| 88 | 88 | $view->tabindex = ++$idx + 1; |
| 89 | 89 | $view->itemBody .= $client->copy(); |
| 90 | 90 | } |
| 91 | - } |
|
| 92 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 91 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 93 | 92 | { |
| 94 | 93 | $error = array( 'type-attribute-lists-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 95 | 94 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 96 | 95 | $this->logException( $e ); |
| 97 | - } |
|
| 98 | - catch( \Exception $e ) |
|
| 96 | + } catch( \Exception $e ) |
|
| 99 | 97 | { |
| 100 | 98 | $error = array( 'type-attribute-lists-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 101 | 99 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -137,14 +135,12 @@ discard block |
||
| 137 | 135 | $view->tabindex = ++$idx + 1; |
| 138 | 136 | $view->itemBody .= $client->create(); |
| 139 | 137 | } |
| 140 | - } |
|
| 141 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 138 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 142 | 139 | { |
| 143 | 140 | $error = array( 'type-attribute-lists-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 144 | 141 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 145 | 142 | $this->logException( $e ); |
| 146 | - } |
|
| 147 | - catch( \Exception $e ) |
|
| 143 | + } catch( \Exception $e ) |
|
| 148 | 144 | { |
| 149 | 145 | $error = array( 'type-attribute-lists-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 150 | 146 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -185,14 +181,12 @@ discard block |
||
| 185 | 181 | |
| 186 | 182 | $this->nextAction( $view, 'search', 'type/attribute/lists', null, 'delete' ); |
| 187 | 183 | return; |
| 188 | - } |
|
| 189 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 184 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 190 | 185 | { |
| 191 | 186 | $error = array( 'type-attribute-lists-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 192 | 187 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 193 | 188 | $this->logException( $e ); |
| 194 | - } |
|
| 195 | - catch( \Exception $e ) |
|
| 189 | + } catch( \Exception $e ) |
|
| 196 | 190 | { |
| 197 | 191 | $error = array( 'type-attribute-lists-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 198 | 192 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -233,14 +227,12 @@ discard block |
||
| 233 | 227 | $view->tabindex = ++$idx + 1; |
| 234 | 228 | $view->itemBody .= $client->get(); |
| 235 | 229 | } |
| 236 | - } |
|
| 237 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 230 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 238 | 231 | { |
| 239 | 232 | $error = array( 'type-attribute-lists-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 240 | 233 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 241 | 234 | $this->logException( $e ); |
| 242 | - } |
|
| 243 | - catch( \Exception $e ) |
|
| 235 | + } catch( \Exception $e ) |
|
| 244 | 236 | { |
| 245 | 237 | $error = array( 'type-attribute-lists-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 246 | 238 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -277,18 +269,15 @@ discard block |
||
| 277 | 269 | |
| 278 | 270 | $this->nextAction( $view, $view->param( 'next' ), 'type/attribute/lists', $view->item->getId(), 'save' ); |
| 279 | 271 | return; |
| 280 | - } |
|
| 281 | - catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 272 | + } catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 282 | 273 | { |
| 283 | 274 | // fall through to create |
| 284 | - } |
|
| 285 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 275 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 286 | 276 | { |
| 287 | 277 | $error = array( 'type-attribute-lists-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 288 | 278 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 289 | 279 | $this->logException( $e ); |
| 290 | - } |
|
| 291 | - catch( \Exception $e ) |
|
| 280 | + } catch( \Exception $e ) |
|
| 292 | 281 | { |
| 293 | 282 | $error = array( 'type-attribute-lists-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 294 | 283 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -327,14 +316,12 @@ discard block |
||
| 327 | 316 | foreach( $this->getSubClients() as $client ) { |
| 328 | 317 | $view->itemBody .= $client->search(); |
| 329 | 318 | } |
| 330 | - } |
|
| 331 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 319 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 332 | 320 | { |
| 333 | 321 | $error = array( 'type-attribute-lists-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 334 | 322 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 335 | 323 | $this->logException( $e ); |
| 336 | - } |
|
| 337 | - catch( \Exception $e ) |
|
| 324 | + } catch( \Exception $e ) |
|
| 338 | 325 | { |
| 339 | 326 | $error = array( 'type-attribute-lists-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 340 | 327 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -88,14 +88,12 @@ discard block |
||
| 88 | 88 | $view->tabindex = ++$idx + 1; |
| 89 | 89 | $view->itemBody .= $client->copy(); |
| 90 | 90 | } |
| 91 | - } |
|
| 92 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 91 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 93 | 92 | { |
| 94 | 93 | $error = array( 'type-attribute-property-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 95 | 94 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 96 | 95 | $this->logException( $e ); |
| 97 | - } |
|
| 98 | - catch( \Exception $e ) |
|
| 96 | + } catch( \Exception $e ) |
|
| 99 | 97 | { |
| 100 | 98 | $error = array( 'type-attribute-property-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 101 | 99 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -137,14 +135,12 @@ discard block |
||
| 137 | 135 | $view->tabindex = ++$idx + 1; |
| 138 | 136 | $view->itemBody .= $client->create(); |
| 139 | 137 | } |
| 140 | - } |
|
| 141 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 138 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 142 | 139 | { |
| 143 | 140 | $error = array( 'type-attribute-property-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 144 | 141 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 145 | 142 | $this->logException( $e ); |
| 146 | - } |
|
| 147 | - catch( \Exception $e ) |
|
| 143 | + } catch( \Exception $e ) |
|
| 148 | 144 | { |
| 149 | 145 | $error = array( 'type-attribute-property-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 150 | 146 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -185,14 +181,12 @@ discard block |
||
| 185 | 181 | |
| 186 | 182 | $this->nextAction( $view, 'search', 'type/attribute/property', null, 'delete' ); |
| 187 | 183 | return; |
| 188 | - } |
|
| 189 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 184 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 190 | 185 | { |
| 191 | 186 | $error = array( 'type-attribute-property-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 192 | 187 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 193 | 188 | $this->logException( $e ); |
| 194 | - } |
|
| 195 | - catch( \Exception $e ) |
|
| 189 | + } catch( \Exception $e ) |
|
| 196 | 190 | { |
| 197 | 191 | $error = array( 'type-attribute-property-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 198 | 192 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -233,14 +227,12 @@ discard block |
||
| 233 | 227 | $view->tabindex = ++$idx + 1; |
| 234 | 228 | $view->itemBody .= $client->get(); |
| 235 | 229 | } |
| 236 | - } |
|
| 237 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 230 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 238 | 231 | { |
| 239 | 232 | $error = array( 'type-attribute-property-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 240 | 233 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 241 | 234 | $this->logException( $e ); |
| 242 | - } |
|
| 243 | - catch( \Exception $e ) |
|
| 235 | + } catch( \Exception $e ) |
|
| 244 | 236 | { |
| 245 | 237 | $error = array( 'type-attribute-property-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 246 | 238 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -277,18 +269,15 @@ discard block |
||
| 277 | 269 | |
| 278 | 270 | $this->nextAction( $view, $view->param( 'next' ), 'type/attribute/property', $view->item->getId(), 'save' ); |
| 279 | 271 | return; |
| 280 | - } |
|
| 281 | - catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 272 | + } catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 282 | 273 | { |
| 283 | 274 | // fall through to create |
| 284 | - } |
|
| 285 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 275 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 286 | 276 | { |
| 287 | 277 | $error = array( 'type-attribute-property-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 288 | 278 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 289 | 279 | $this->logException( $e ); |
| 290 | - } |
|
| 291 | - catch( \Exception $e ) |
|
| 280 | + } catch( \Exception $e ) |
|
| 292 | 281 | { |
| 293 | 282 | $error = array( 'type-attribute-property-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 294 | 283 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -327,14 +316,12 @@ discard block |
||
| 327 | 316 | foreach( $this->getSubClients() as $client ) { |
| 328 | 317 | $view->itemBody .= $client->search(); |
| 329 | 318 | } |
| 330 | - } |
|
| 331 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 319 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 332 | 320 | { |
| 333 | 321 | $error = array( 'type-attribute-property-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 334 | 322 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 335 | 323 | $this->logException( $e ); |
| 336 | - } |
|
| 337 | - catch( \Exception $e ) |
|
| 324 | + } catch( \Exception $e ) |
|
| 338 | 325 | { |
| 339 | 326 | $error = array( 'type-attribute-property-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 340 | 327 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -88,14 +88,12 @@ discard block |
||
| 88 | 88 | $view->tabindex = ++$idx + 1; |
| 89 | 89 | $view->itemBody .= $client->copy(); |
| 90 | 90 | } |
| 91 | - } |
|
| 92 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 91 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 93 | 92 | { |
| 94 | 93 | $error = array( 'type-attribute-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 95 | 94 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 96 | 95 | $this->logException( $e ); |
| 97 | - } |
|
| 98 | - catch( \Exception $e ) |
|
| 96 | + } catch( \Exception $e ) |
|
| 99 | 97 | { |
| 100 | 98 | $error = array( 'type-attribute-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 101 | 99 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -137,14 +135,12 @@ discard block |
||
| 137 | 135 | $view->tabindex = ++$idx + 1; |
| 138 | 136 | $view->itemBody .= $client->create(); |
| 139 | 137 | } |
| 140 | - } |
|
| 141 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 138 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 142 | 139 | { |
| 143 | 140 | $error = array( 'type-attribute-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 144 | 141 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 145 | 142 | $this->logException( $e ); |
| 146 | - } |
|
| 147 | - catch( \Exception $e ) |
|
| 143 | + } catch( \Exception $e ) |
|
| 148 | 144 | { |
| 149 | 145 | $error = array( 'type-attribute-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 150 | 146 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -185,14 +181,12 @@ discard block |
||
| 185 | 181 | |
| 186 | 182 | $this->nextAction( $view, 'search', 'type/attribute', null, 'delete' ); |
| 187 | 183 | return; |
| 188 | - } |
|
| 189 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 184 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 190 | 185 | { |
| 191 | 186 | $error = array( 'type-attribute-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 192 | 187 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 193 | 188 | $this->logException( $e ); |
| 194 | - } |
|
| 195 | - catch( \Exception $e ) |
|
| 189 | + } catch( \Exception $e ) |
|
| 196 | 190 | { |
| 197 | 191 | $error = array( 'type-attribute-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 198 | 192 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -233,14 +227,12 @@ discard block |
||
| 233 | 227 | $view->tabindex = ++$idx + 1; |
| 234 | 228 | $view->itemBody .= $client->get(); |
| 235 | 229 | } |
| 236 | - } |
|
| 237 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 230 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 238 | 231 | { |
| 239 | 232 | $error = array( 'type-attribute-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 240 | 233 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 241 | 234 | $this->logException( $e ); |
| 242 | - } |
|
| 243 | - catch( \Exception $e ) |
|
| 235 | + } catch( \Exception $e ) |
|
| 244 | 236 | { |
| 245 | 237 | $error = array( 'type-attribute-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 246 | 238 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -277,18 +269,15 @@ discard block |
||
| 277 | 269 | |
| 278 | 270 | $this->nextAction( $view, $view->param( 'next' ), 'type/attribute', $view->item->getId(), 'save' ); |
| 279 | 271 | return; |
| 280 | - } |
|
| 281 | - catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 272 | + } catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 282 | 273 | { |
| 283 | 274 | // fall through to create |
| 284 | - } |
|
| 285 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 275 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 286 | 276 | { |
| 287 | 277 | $error = array( 'type-attribute-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 288 | 278 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 289 | 279 | $this->logException( $e ); |
| 290 | - } |
|
| 291 | - catch( \Exception $e ) |
|
| 280 | + } catch( \Exception $e ) |
|
| 292 | 281 | { |
| 293 | 282 | $error = array( 'type-attribute-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 294 | 283 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -327,14 +316,12 @@ discard block |
||
| 327 | 316 | foreach( $this->getSubClients() as $client ) { |
| 328 | 317 | $view->itemBody .= $client->search(); |
| 329 | 318 | } |
| 330 | - } |
|
| 331 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 319 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 332 | 320 | { |
| 333 | 321 | $error = array( 'type-attribute-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 334 | 322 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 335 | 323 | $this->logException( $e ); |
| 336 | - } |
|
| 337 | - catch( \Exception $e ) |
|
| 324 | + } catch( \Exception $e ) |
|
| 338 | 325 | { |
| 339 | 326 | $error = array( 'type-attribute-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 340 | 327 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -88,14 +88,12 @@ discard block |
||
| 88 | 88 | $view->tabindex = ++$idx + 1; |
| 89 | 89 | $view->itemBody .= $client->copy(); |
| 90 | 90 | } |
| 91 | - } |
|
| 92 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 91 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 93 | 92 | { |
| 94 | 93 | $error = array( 'type-catalog-lists-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 95 | 94 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 96 | 95 | $this->logException( $e ); |
| 97 | - } |
|
| 98 | - catch( \Exception $e ) |
|
| 96 | + } catch( \Exception $e ) |
|
| 99 | 97 | { |
| 100 | 98 | $error = array( 'type-catalog-lists-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 101 | 99 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -137,14 +135,12 @@ discard block |
||
| 137 | 135 | $view->tabindex = ++$idx + 1; |
| 138 | 136 | $view->itemBody .= $client->create(); |
| 139 | 137 | } |
| 140 | - } |
|
| 141 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 138 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 142 | 139 | { |
| 143 | 140 | $error = array( 'type-catalog-lists-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 144 | 141 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 145 | 142 | $this->logException( $e ); |
| 146 | - } |
|
| 147 | - catch( \Exception $e ) |
|
| 143 | + } catch( \Exception $e ) |
|
| 148 | 144 | { |
| 149 | 145 | $error = array( 'type-catalog-lists-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 150 | 146 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -185,14 +181,12 @@ discard block |
||
| 185 | 181 | |
| 186 | 182 | $this->nextAction( $view, 'search', 'type/catalog/lists', null, 'delete' ); |
| 187 | 183 | return; |
| 188 | - } |
|
| 189 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 184 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 190 | 185 | { |
| 191 | 186 | $error = array( 'type-catalog-lists-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 192 | 187 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 193 | 188 | $this->logException( $e ); |
| 194 | - } |
|
| 195 | - catch( \Exception $e ) |
|
| 189 | + } catch( \Exception $e ) |
|
| 196 | 190 | { |
| 197 | 191 | $error = array( 'type-catalog-lists-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 198 | 192 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -233,14 +227,12 @@ discard block |
||
| 233 | 227 | $view->tabindex = ++$idx + 1; |
| 234 | 228 | $view->itemBody .= $client->get(); |
| 235 | 229 | } |
| 236 | - } |
|
| 237 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 230 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 238 | 231 | { |
| 239 | 232 | $error = array( 'type-catalog-lists-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 240 | 233 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 241 | 234 | $this->logException( $e ); |
| 242 | - } |
|
| 243 | - catch( \Exception $e ) |
|
| 235 | + } catch( \Exception $e ) |
|
| 244 | 236 | { |
| 245 | 237 | $error = array( 'type-catalog-lists-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 246 | 238 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -277,18 +269,15 @@ discard block |
||
| 277 | 269 | |
| 278 | 270 | $this->nextAction( $view, $view->param( 'next' ), 'type/catalog/lists', $view->item->getId(), 'save' ); |
| 279 | 271 | return; |
| 280 | - } |
|
| 281 | - catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 272 | + } catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 282 | 273 | { |
| 283 | 274 | // fall through to create |
| 284 | - } |
|
| 285 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 275 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 286 | 276 | { |
| 287 | 277 | $error = array( 'type-catalog-lists-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 288 | 278 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 289 | 279 | $this->logException( $e ); |
| 290 | - } |
|
| 291 | - catch( \Exception $e ) |
|
| 280 | + } catch( \Exception $e ) |
|
| 292 | 281 | { |
| 293 | 282 | $error = array( 'type-catalog-lists-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 294 | 283 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -327,14 +316,12 @@ discard block |
||
| 327 | 316 | foreach( $this->getSubClients() as $client ) { |
| 328 | 317 | $view->itemBody .= $client->search(); |
| 329 | 318 | } |
| 330 | - } |
|
| 331 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 319 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 332 | 320 | { |
| 333 | 321 | $error = array( 'type-catalog-lists-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 334 | 322 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 335 | 323 | $this->logException( $e ); |
| 336 | - } |
|
| 337 | - catch( \Exception $e ) |
|
| 324 | + } catch( \Exception $e ) |
|
| 338 | 325 | { |
| 339 | 326 | $error = array( 'type-catalog-lists-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 340 | 327 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -88,14 +88,12 @@ discard block |
||
| 88 | 88 | $view->tabindex = ++$idx + 1; |
| 89 | 89 | $view->itemBody .= $client->copy(); |
| 90 | 90 | } |
| 91 | - } |
|
| 92 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 91 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 93 | 92 | { |
| 94 | 93 | $error = array( 'type-tag-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 95 | 94 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 96 | 95 | $this->logException( $e ); |
| 97 | - } |
|
| 98 | - catch( \Exception $e ) |
|
| 96 | + } catch( \Exception $e ) |
|
| 99 | 97 | { |
| 100 | 98 | $error = array( 'type-tag-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 101 | 99 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -137,14 +135,12 @@ discard block |
||
| 137 | 135 | $view->tabindex = ++$idx + 1; |
| 138 | 136 | $view->itemBody .= $client->create(); |
| 139 | 137 | } |
| 140 | - } |
|
| 141 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 138 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 142 | 139 | { |
| 143 | 140 | $error = array( 'type-tag-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 144 | 141 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 145 | 142 | $this->logException( $e ); |
| 146 | - } |
|
| 147 | - catch( \Exception $e ) |
|
| 143 | + } catch( \Exception $e ) |
|
| 148 | 144 | { |
| 149 | 145 | $error = array( 'type-tag-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 150 | 146 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -185,14 +181,12 @@ discard block |
||
| 185 | 181 | |
| 186 | 182 | $this->nextAction( $view, 'search', 'type/tag', null, 'delete' ); |
| 187 | 183 | return; |
| 188 | - } |
|
| 189 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 184 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 190 | 185 | { |
| 191 | 186 | $error = array( 'type-tag-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 192 | 187 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 193 | 188 | $this->logException( $e ); |
| 194 | - } |
|
| 195 | - catch( \Exception $e ) |
|
| 189 | + } catch( \Exception $e ) |
|
| 196 | 190 | { |
| 197 | 191 | $error = array( 'type-tag-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 198 | 192 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -233,14 +227,12 @@ discard block |
||
| 233 | 227 | $view->tabindex = ++$idx + 1; |
| 234 | 228 | $view->itemBody .= $client->get(); |
| 235 | 229 | } |
| 236 | - } |
|
| 237 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 230 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 238 | 231 | { |
| 239 | 232 | $error = array( 'type-tag-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 240 | 233 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 241 | 234 | $this->logException( $e ); |
| 242 | - } |
|
| 243 | - catch( \Exception $e ) |
|
| 235 | + } catch( \Exception $e ) |
|
| 244 | 236 | { |
| 245 | 237 | $error = array( 'type-tag-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 246 | 238 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -277,18 +269,15 @@ discard block |
||
| 277 | 269 | |
| 278 | 270 | $this->nextAction( $view, $view->param( 'next' ), 'type/tag', $view->item->getId(), 'save' ); |
| 279 | 271 | return; |
| 280 | - } |
|
| 281 | - catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 272 | + } catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 282 | 273 | { |
| 283 | 274 | // fall through to create |
| 284 | - } |
|
| 285 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 275 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 286 | 276 | { |
| 287 | 277 | $error = array( 'type-tag-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 288 | 278 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 289 | 279 | $this->logException( $e ); |
| 290 | - } |
|
| 291 | - catch( \Exception $e ) |
|
| 280 | + } catch( \Exception $e ) |
|
| 292 | 281 | { |
| 293 | 282 | $error = array( 'type-tag-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 294 | 283 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -327,14 +316,12 @@ discard block |
||
| 327 | 316 | foreach( $this->getSubClients() as $client ) { |
| 328 | 317 | $view->itemBody .= $client->search(); |
| 329 | 318 | } |
| 330 | - } |
|
| 331 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 319 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 332 | 320 | { |
| 333 | 321 | $error = array( 'type-tag-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 334 | 322 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 335 | 323 | $this->logException( $e ); |
| 336 | - } |
|
| 337 | - catch( \Exception $e ) |
|
| 324 | + } catch( \Exception $e ) |
|
| 338 | 325 | { |
| 339 | 326 | $error = array( 'type-tag-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 340 | 327 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -88,14 +88,12 @@ discard block |
||
| 88 | 88 | $view->tabindex = ++$idx + 1; |
| 89 | 89 | $view->itemBody .= $client->copy(); |
| 90 | 90 | } |
| 91 | - } |
|
| 92 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 91 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 93 | 92 | { |
| 94 | 93 | $error = array( 'type-stock-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 95 | 94 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 96 | 95 | $this->logException( $e ); |
| 97 | - } |
|
| 98 | - catch( \Exception $e ) |
|
| 96 | + } catch( \Exception $e ) |
|
| 99 | 97 | { |
| 100 | 98 | $error = array( 'type-stock-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 101 | 99 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -137,14 +135,12 @@ discard block |
||
| 137 | 135 | $view->tabindex = ++$idx + 1; |
| 138 | 136 | $view->itemBody .= $client->create(); |
| 139 | 137 | } |
| 140 | - } |
|
| 141 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 138 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 142 | 139 | { |
| 143 | 140 | $error = array( 'type-stock-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 144 | 141 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 145 | 142 | $this->logException( $e ); |
| 146 | - } |
|
| 147 | - catch( \Exception $e ) |
|
| 143 | + } catch( \Exception $e ) |
|
| 148 | 144 | { |
| 149 | 145 | $error = array( 'type-stock-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 150 | 146 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -185,14 +181,12 @@ discard block |
||
| 185 | 181 | |
| 186 | 182 | $this->nextAction( $view, 'search', 'type/stock', null, 'delete' ); |
| 187 | 183 | return; |
| 188 | - } |
|
| 189 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 184 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 190 | 185 | { |
| 191 | 186 | $error = array( 'type-stock-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 192 | 187 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 193 | 188 | $this->logException( $e ); |
| 194 | - } |
|
| 195 | - catch( \Exception $e ) |
|
| 189 | + } catch( \Exception $e ) |
|
| 196 | 190 | { |
| 197 | 191 | $error = array( 'type-stock-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 198 | 192 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -233,14 +227,12 @@ discard block |
||
| 233 | 227 | $view->tabindex = ++$idx + 1; |
| 234 | 228 | $view->itemBody .= $client->get(); |
| 235 | 229 | } |
| 236 | - } |
|
| 237 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 230 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 238 | 231 | { |
| 239 | 232 | $error = array( 'type-stock-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 240 | 233 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 241 | 234 | $this->logException( $e ); |
| 242 | - } |
|
| 243 | - catch( \Exception $e ) |
|
| 235 | + } catch( \Exception $e ) |
|
| 244 | 236 | { |
| 245 | 237 | $error = array( 'type-stock-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 246 | 238 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -277,18 +269,15 @@ discard block |
||
| 277 | 269 | |
| 278 | 270 | $this->nextAction( $view, $view->param( 'next' ), 'type/stock', $view->item->getId(), 'save' ); |
| 279 | 271 | return; |
| 280 | - } |
|
| 281 | - catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 272 | + } catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 282 | 273 | { |
| 283 | 274 | // fall through to create |
| 284 | - } |
|
| 285 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 275 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 286 | 276 | { |
| 287 | 277 | $error = array( 'type-stock-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 288 | 278 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 289 | 279 | $this->logException( $e ); |
| 290 | - } |
|
| 291 | - catch( \Exception $e ) |
|
| 280 | + } catch( \Exception $e ) |
|
| 292 | 281 | { |
| 293 | 282 | $error = array( 'type-stock-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 294 | 283 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -327,14 +316,12 @@ discard block |
||
| 327 | 316 | foreach( $this->getSubClients() as $client ) { |
| 328 | 317 | $view->itemBody .= $client->search(); |
| 329 | 318 | } |
| 330 | - } |
|
| 331 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 319 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 332 | 320 | { |
| 333 | 321 | $error = array( 'type-stock-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 334 | 322 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 335 | 323 | $this->logException( $e ); |
| 336 | - } |
|
| 337 | - catch( \Exception $e ) |
|
| 324 | + } catch( \Exception $e ) |
|
| 338 | 325 | { |
| 339 | 326 | $error = array( 'type-stock-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 340 | 327 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -88,14 +88,12 @@ discard block |
||
| 88 | 88 | $view->tabindex = ++$idx + 1; |
| 89 | 89 | $view->itemBody .= $client->copy(); |
| 90 | 90 | } |
| 91 | - } |
|
| 92 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 91 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 93 | 92 | { |
| 94 | 93 | $error = array( 'type-product-lists-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 95 | 94 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 96 | 95 | $this->logException( $e ); |
| 97 | - } |
|
| 98 | - catch( \Exception $e ) |
|
| 96 | + } catch( \Exception $e ) |
|
| 99 | 97 | { |
| 100 | 98 | $error = array( 'type-product-lists-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 101 | 99 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -137,14 +135,12 @@ discard block |
||
| 137 | 135 | $view->tabindex = ++$idx + 1; |
| 138 | 136 | $view->itemBody .= $client->create(); |
| 139 | 137 | } |
| 140 | - } |
|
| 141 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 138 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 142 | 139 | { |
| 143 | 140 | $error = array( 'type-product-lists-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 144 | 141 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 145 | 142 | $this->logException( $e ); |
| 146 | - } |
|
| 147 | - catch( \Exception $e ) |
|
| 143 | + } catch( \Exception $e ) |
|
| 148 | 144 | { |
| 149 | 145 | $error = array( 'type-product-lists-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 150 | 146 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -185,14 +181,12 @@ discard block |
||
| 185 | 181 | |
| 186 | 182 | $this->nextAction( $view, 'search', 'type/product/lists', null, 'delete' ); |
| 187 | 183 | return; |
| 188 | - } |
|
| 189 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 184 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 190 | 185 | { |
| 191 | 186 | $error = array( 'type-product-lists-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 192 | 187 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 193 | 188 | $this->logException( $e ); |
| 194 | - } |
|
| 195 | - catch( \Exception $e ) |
|
| 189 | + } catch( \Exception $e ) |
|
| 196 | 190 | { |
| 197 | 191 | $error = array( 'type-product-lists-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 198 | 192 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -233,14 +227,12 @@ discard block |
||
| 233 | 227 | $view->tabindex = ++$idx + 1; |
| 234 | 228 | $view->itemBody .= $client->get(); |
| 235 | 229 | } |
| 236 | - } |
|
| 237 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 230 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 238 | 231 | { |
| 239 | 232 | $error = array( 'type-product-lists-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 240 | 233 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 241 | 234 | $this->logException( $e ); |
| 242 | - } |
|
| 243 | - catch( \Exception $e ) |
|
| 235 | + } catch( \Exception $e ) |
|
| 244 | 236 | { |
| 245 | 237 | $error = array( 'type-product-lists-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 246 | 238 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -277,18 +269,15 @@ discard block |
||
| 277 | 269 | |
| 278 | 270 | $this->nextAction( $view, $view->param( 'next' ), 'type/product/lists', $view->item->getId(), 'save' ); |
| 279 | 271 | return; |
| 280 | - } |
|
| 281 | - catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 272 | + } catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 282 | 273 | { |
| 283 | 274 | // fall through to create |
| 284 | - } |
|
| 285 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 275 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 286 | 276 | { |
| 287 | 277 | $error = array( 'type-product-lists-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 288 | 278 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 289 | 279 | $this->logException( $e ); |
| 290 | - } |
|
| 291 | - catch( \Exception $e ) |
|
| 280 | + } catch( \Exception $e ) |
|
| 292 | 281 | { |
| 293 | 282 | $error = array( 'type-product-lists-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 294 | 283 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -327,14 +316,12 @@ discard block |
||
| 327 | 316 | foreach( $this->getSubClients() as $client ) { |
| 328 | 317 | $view->itemBody .= $client->search(); |
| 329 | 318 | } |
| 330 | - } |
|
| 331 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 319 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 332 | 320 | { |
| 333 | 321 | $error = array( 'type-product-lists-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 334 | 322 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 335 | 323 | $this->logException( $e ); |
| 336 | - } |
|
| 337 | - catch( \Exception $e ) |
|
| 324 | + } catch( \Exception $e ) |
|
| 338 | 325 | { |
| 339 | 326 | $error = array( 'type-product-lists-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 340 | 327 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -88,14 +88,12 @@ discard block |
||
| 88 | 88 | $view->tabindex = ++$idx + 1; |
| 89 | 89 | $view->itemBody .= $client->copy(); |
| 90 | 90 | } |
| 91 | - } |
|
| 92 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 91 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 93 | 92 | { |
| 94 | 93 | $error = array( 'type-product-property-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 95 | 94 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 96 | 95 | $this->logException( $e ); |
| 97 | - } |
|
| 98 | - catch( \Exception $e ) |
|
| 96 | + } catch( \Exception $e ) |
|
| 99 | 97 | { |
| 100 | 98 | $error = array( 'type-product-property-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 101 | 99 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -137,14 +135,12 @@ discard block |
||
| 137 | 135 | $view->tabindex = ++$idx + 1; |
| 138 | 136 | $view->itemBody .= $client->create(); |
| 139 | 137 | } |
| 140 | - } |
|
| 141 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 138 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 142 | 139 | { |
| 143 | 140 | $error = array( 'type-product-property-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 144 | 141 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 145 | 142 | $this->logException( $e ); |
| 146 | - } |
|
| 147 | - catch( \Exception $e ) |
|
| 143 | + } catch( \Exception $e ) |
|
| 148 | 144 | { |
| 149 | 145 | $error = array( 'type-product-property-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 150 | 146 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -185,14 +181,12 @@ discard block |
||
| 185 | 181 | |
| 186 | 182 | $this->nextAction( $view, 'search', 'type/product/property', null, 'delete' ); |
| 187 | 183 | return; |
| 188 | - } |
|
| 189 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 184 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 190 | 185 | { |
| 191 | 186 | $error = array( 'type-product-property-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 192 | 187 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 193 | 188 | $this->logException( $e ); |
| 194 | - } |
|
| 195 | - catch( \Exception $e ) |
|
| 189 | + } catch( \Exception $e ) |
|
| 196 | 190 | { |
| 197 | 191 | $error = array( 'type-product-property-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 198 | 192 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -233,14 +227,12 @@ discard block |
||
| 233 | 227 | $view->tabindex = ++$idx + 1; |
| 234 | 228 | $view->itemBody .= $client->get(); |
| 235 | 229 | } |
| 236 | - } |
|
| 237 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 230 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 238 | 231 | { |
| 239 | 232 | $error = array( 'type-product-property-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 240 | 233 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 241 | 234 | $this->logException( $e ); |
| 242 | - } |
|
| 243 | - catch( \Exception $e ) |
|
| 235 | + } catch( \Exception $e ) |
|
| 244 | 236 | { |
| 245 | 237 | $error = array( 'type-product-property-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 246 | 238 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -277,18 +269,15 @@ discard block |
||
| 277 | 269 | |
| 278 | 270 | $this->nextAction( $view, $view->param( 'next' ), 'type/product/property', $view->item->getId(), 'save' ); |
| 279 | 271 | return; |
| 280 | - } |
|
| 281 | - catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 272 | + } catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 282 | 273 | { |
| 283 | 274 | // fall through to create |
| 284 | - } |
|
| 285 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 275 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 286 | 276 | { |
| 287 | 277 | $error = array( 'type-product-property-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 288 | 278 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 289 | 279 | $this->logException( $e ); |
| 290 | - } |
|
| 291 | - catch( \Exception $e ) |
|
| 280 | + } catch( \Exception $e ) |
|
| 292 | 281 | { |
| 293 | 282 | $error = array( 'type-product-property-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 294 | 283 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -327,14 +316,12 @@ discard block |
||
| 327 | 316 | foreach( $this->getSubClients() as $client ) { |
| 328 | 317 | $view->itemBody .= $client->search(); |
| 329 | 318 | } |
| 330 | - } |
|
| 331 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 319 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 332 | 320 | { |
| 333 | 321 | $error = array( 'type-product-property-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 334 | 322 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 335 | 323 | $this->logException( $e ); |
| 336 | - } |
|
| 337 | - catch( \Exception $e ) |
|
| 324 | + } catch( \Exception $e ) |
|
| 338 | 325 | { |
| 339 | 326 | $error = array( 'type-product-property-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 340 | 327 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -88,14 +88,12 @@ discard block |
||
| 88 | 88 | $view->tabindex = ++$idx + 1; |
| 89 | 89 | $view->itemBody .= $client->copy(); |
| 90 | 90 | } |
| 91 | - } |
|
| 92 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 91 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 93 | 92 | { |
| 94 | 93 | $error = array( 'type-product-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 95 | 94 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 96 | 95 | $this->logException( $e ); |
| 97 | - } |
|
| 98 | - catch( \Exception $e ) |
|
| 96 | + } catch( \Exception $e ) |
|
| 99 | 97 | { |
| 100 | 98 | $error = array( 'type-product-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 101 | 99 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -137,14 +135,12 @@ discard block |
||
| 137 | 135 | $view->tabindex = ++$idx + 1; |
| 138 | 136 | $view->itemBody .= $client->create(); |
| 139 | 137 | } |
| 140 | - } |
|
| 141 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 138 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 142 | 139 | { |
| 143 | 140 | $error = array( 'type-product-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 144 | 141 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 145 | 142 | $this->logException( $e ); |
| 146 | - } |
|
| 147 | - catch( \Exception $e ) |
|
| 143 | + } catch( \Exception $e ) |
|
| 148 | 144 | { |
| 149 | 145 | $error = array( 'type-product-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 150 | 146 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -185,14 +181,12 @@ discard block |
||
| 185 | 181 | |
| 186 | 182 | $this->nextAction( $view, 'search', 'type/product', null, 'delete' ); |
| 187 | 183 | return; |
| 188 | - } |
|
| 189 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 184 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 190 | 185 | { |
| 191 | 186 | $error = array( 'type-product-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 192 | 187 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 193 | 188 | $this->logException( $e ); |
| 194 | - } |
|
| 195 | - catch( \Exception $e ) |
|
| 189 | + } catch( \Exception $e ) |
|
| 196 | 190 | { |
| 197 | 191 | $error = array( 'type-product-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 198 | 192 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -233,14 +227,12 @@ discard block |
||
| 233 | 227 | $view->tabindex = ++$idx + 1; |
| 234 | 228 | $view->itemBody .= $client->get(); |
| 235 | 229 | } |
| 236 | - } |
|
| 237 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 230 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 238 | 231 | { |
| 239 | 232 | $error = array( 'type-product-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 240 | 233 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 241 | 234 | $this->logException( $e ); |
| 242 | - } |
|
| 243 | - catch( \Exception $e ) |
|
| 235 | + } catch( \Exception $e ) |
|
| 244 | 236 | { |
| 245 | 237 | $error = array( 'type-product-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 246 | 238 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -277,18 +269,15 @@ discard block |
||
| 277 | 269 | |
| 278 | 270 | $this->nextAction( $view, $view->param( 'next' ), 'type/product', $view->item->getId(), 'save' ); |
| 279 | 271 | return; |
| 280 | - } |
|
| 281 | - catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 272 | + } catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 282 | 273 | { |
| 283 | 274 | // fall through to create |
| 284 | - } |
|
| 285 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 275 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 286 | 276 | { |
| 287 | 277 | $error = array( 'type-product-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 288 | 278 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 289 | 279 | $this->logException( $e ); |
| 290 | - } |
|
| 291 | - catch( \Exception $e ) |
|
| 280 | + } catch( \Exception $e ) |
|
| 292 | 281 | { |
| 293 | 282 | $error = array( 'type-product-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 294 | 283 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -327,14 +316,12 @@ discard block |
||
| 327 | 316 | foreach( $this->getSubClients() as $client ) { |
| 328 | 317 | $view->itemBody .= $client->search(); |
| 329 | 318 | } |
| 330 | - } |
|
| 331 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 319 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 332 | 320 | { |
| 333 | 321 | $error = array( 'type-product-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 334 | 322 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 335 | 323 | $this->logException( $e ); |
| 336 | - } |
|
| 337 | - catch( \Exception $e ) |
|
| 324 | + } catch( \Exception $e ) |
|
| 338 | 325 | { |
| 339 | 326 | $error = array( 'type-product-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 340 | 327 | $view->errors = $view->get( 'errors', [] ) + $error; |