| @@ 908-915 (lines=8) @@ | ||
| 905 | ||
| 906 | $errors = $this->getExportAssignmentService()->exportBatchOfAllProducts($offset, $batchSize); |
|
| 907 | ||
| 908 | if (!empty($errors)) { |
|
| 909 | $this->View()->assign([ |
|
| 910 | 'success' => false, |
|
| 911 | 'messages' => $errors |
|
| 912 | ]); |
|
| 913 | ||
| 914 | return; |
|
| 915 | } |
|
| 916 | } catch (\Exception $e) { |
|
| 917 | $this->View()->assign([ |
|
| 918 | 'success' => false, |
|
| @@ 997-1004 (lines=8) @@ | ||
| 994 | return; |
|
| 995 | } |
|
| 996 | ||
| 997 | if (!empty($errors)) { |
|
| 998 | $this->View()->assign([ |
|
| 999 | 'success' => false, |
|
| 1000 | 'messages' => $errors |
|
| 1001 | ]); |
|
| 1002 | ||
| 1003 | return; |
|
| 1004 | } |
|
| 1005 | ||
| 1006 | $this->View()->assign([ |
|
| 1007 | 'success' => true |
|