Commit 75d3948fb12308d46427cf8c1a76856575ecb84c

Authored by Alex Savenko
1 parent bec32af4

common

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
src/app/frontend/controllers/PageController.php
... ... @@ -1386,6 +1386,9 @@
1386 1386 $discount = $this->models->getDiscount()->getActiveData();
1387 1387 if (!empty($discount)) {
1388 1388 $discount = $discount[0];
  1389 + $discount['group_ids'] = str_replace('{', '', $discount['group_ids']);
  1390 + $discount['group_ids'] = str_replace('}', '', $discount['group_ids']);
  1391 + $discount['group_ids'] = explode(',', $discount['group_ids']);
1389 1392 } else {
1390 1393 $discount = 0;
1391 1394 }
... ...