// adding categories with shop association

This commit is contained in:
vChabot committed 2011-12-21 09:46:38 +00:00
1 parent 6990b56d54
commit c2cfe45647
3 files changed
+34 -1

No files matched your search

@@ -433,6 +433,12 @@ class AdminCategoriesControllerCore extends AdminController
{
return strip_tags(stripslashes($description));
}
public function afterAdd($object)
{
// associate the category to the context shop
$object->addShop($this->context->shop->getID());
}
}