Jump to content

Helper list paging,filtering in AdminAttributesGroups controller


daveyrow

Recommended Posts

Hi, i'm using Prestashop 1.6.1.6,

 i have small problem. When i add too many attribute items to attribute group, and paging appears, it simply does not work, it always redirects me to AttributeGroup list, not Attribute Items list. Please, do you have any suggestion for this? Thanks a lot.

Link to comment
Share on other sites

Hi, i fixed this by adding a short code to 'AdminAttributesGroupsController.php' in /controllers/admin/

    public function setRedirectAfter($url)
    {
        $addUrl = '';
        if(Tools::isSubmit('viewattribute_group') && Tools::getValue('id_attribute_group')) {
            $addUrl = '&viewattribute_group&id_attribute_group=' . Tools::getValue('id_attribute_group');
        }

        $this->redirect_after = $url . $addUrl;
    }

dont know if its correct or buggy for other things but yet it works well

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...