Commit f000f0d7d6c64bbde5b7904d7f173d93d0411e5c

Authored by Alex Savenko
2 parents 8c1d2fae 9f5f9ad2

Merge branch 'discount' of gitlab.artweb.com.ua:Alex/semena

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 170 $data[0]['end_date'] = $this->request->getPost('end_date');
171 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 177 if ($data[0]['discount'] > 100) {
178 178  
... ...