diff --git a/modules/ant_creationcategories/AdminAntCreationcategories.php b/modules/ant_creationcategories/AdminAntCreationcategories.php index 87f8ecb3..20e95d25 100644 --- a/modules/ant_creationcategories/AdminAntCreationcategories.php +++ b/modules/ant_creationcategories/AdminAntCreationcategories.php @@ -89,6 +89,10 @@ class AdminAntCreationcategories extends AdminTab } } elseif(Tools::isSubmit('submitAddSubCategories')) { if(Tools::getValue('id_parent')) { + $groups = array(); + foreach (Group::getGroups((int)($cookie->id_lang)) AS $row){ + $groups[] = $row['id_group']; + } $id_parent = (int) Tools::getValue('id_parent'); $date = date('Y') . '-' . date('m'); if(Tools::getValue('subcategories2')) {