Commit 9f5f9ad244ad26b11a233b9fc9546904cb1aca01

Authored by Alex Savenko
1 parent cb1fef5c

products pick

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
src/app/backend/controllers/DiscountController.php
@@ -170,9 +170,9 @@ class DiscountController extends Controller @@ -170,9 +170,9 @@ class DiscountController extends Controller
170 $data[0]['end_date'] = $this->request->getPost('end_date'); 170 $data[0]['end_date'] = $this->request->getPost('end_date');
171 $data[0]['description'] = $this->request->getPost('description'); 171 $data[0]['description'] = $this->request->getPost('description');
172 172
173 - $data['catalog_ids'] = $this->request->getPost('catalog', 'string', NULL );  
174 - $data['group_ids'] = $this->request->getPost('items', 'string', NULL );  
175 - $data['all_items'] = $this->request->getPost('all_items', 'int', NULL); 173 + $data[0]['catalog_ids'] = $this->request->getPost('catalog', 'string', NULL );
  174 + $data[0]['group_ids'] = $this->request->getPost('items', 'string', NULL );
  175 + $data[0]['all_items'] = $this->request->getPost('all_items', 'int', NULL);
176 176
177 if ($data[0]['discount'] > 100) { 177 if ($data[0]['discount'] > 100) {
178 178