diff --git a/src/bb-modules/Product/Service.php b/src/bb-modules/Product/Service.php index b8c898778..f8afb1f5d 100644 --- a/src/bb-modules/Product/Service.php +++ b/src/bb-modules/Product/Service.php @@ -672,6 +672,14 @@ class Service implements InjectionAwareInterface } } + if(isset($data['client_groups'])) { + if(empty($data['client_groups'])) { + $model->client_groups = NULL; + } else { + $model->client_groups = json_encode($data['client_groups']); + } + } + if(isset($data['periods']) && is_array($data['periods'])) { $model->periods = json_encode($data['periods']); } diff --git a/src/bb-themes/admin_default/html/mod_product_promo.phtml b/src/bb-themes/admin_default/html/mod_product_promo.phtml index 741de7823..a5fc75dc4 100644 --- a/src/bb-themes/admin_default/html/mod_product_promo.phtml +++ b/src/bb-themes/admin_default/html/mod_product_promo.phtml @@ -131,6 +131,18 @@
+