Commit b6dca575d879f91f7a9e6f16a156378974c2c1b6
Merge branch 'discount' of gitlab.artweb.com.ua:Alex/semena
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/app/backend/controllers/DiscountController.php
... | ... | @@ -148,7 +148,7 @@ class DiscountController extends Controller |
148 | 148 | if( $this->request->isPost() ) { |
149 | 149 | |
150 | 150 | $data[0]['name'] = $this->request->getPost('name', 'string', NULL ); |
151 | - $data[0]['discount'] = $this->request->getPost('discount', 'string', NULL ); | |
151 | + $data[0]['discount'] = $this->request->getPost('discount', 'integer', 0 ); | |
152 | 152 | $data[0]['start_date'] = $this->request->getPost('start_date'); |
153 | 153 | $data[0]['end_date'] = $this->request->getPost('end_date'); |
154 | 154 | $data[0]['description'] = $this->request->getPost('description'); | ... | ... |