Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TbExtendedGridView Paging - Forward slashes in paging... #1033

Open
jackkitley opened this issue Nov 11, 2015 · 1 comment
Open

TbExtendedGridView Paging - Forward slashes in paging... #1033

jackkitley opened this issue Nov 11, 2015 · 1 comment

Comments

@jackkitley
Copy link

Overview:
Im currently using version Bootstrap v3.2.0 of YiiBooster.
In previous versions i do the same thing and it works fine.

Scenario:
I use an seperate search from the grid and the search fields are in a seperate form. When i do a onchange in the dropdown then i trigger:
$("#package-grid").yiiGridView.update("package-grid",{ data: $('#package_filter').serialize()});

The package_filter gets serialized and then the grid is filtered based on what i selected.

Problem:
The problem occurs when i use the filter and then select a page greater than 1. It then concats the duplicate values onto the paging:

http://localhost/jarat/index.php/admin/package/index/Package%5Baccount_id%5D/13/Package%5Byear%5D//Package%5Bclass%5D//Package%5Bservice%5D//Package%5Bprovince%5D//Package%5Broute%5D//Package%5Baccount_type%5D//Package%5Bshow_deleted%5D/0/ajax/package-grid/Package_page/2**?Package%5Baccount_id%5D=13&Package%5Byear%5D=2016&Package%5Bclass%5D=&Package%5Bservice%5D=&Package%5Bprovince%5D=&Package%5Broute%5D=&Package%5Baccount_type%5D=&Package%5Bshow_deleted%5D=0&ajax=package-grid** - This second part is correct.

When it should look like the following:

http://localhost/jarat/index.php/admin/package/index?Package%5Baccount_id%5D=13&Package%5Byear%5D=&Package%5Bclass%5D=&Package%5Bservice%5D=&Package%5Bprovince%5D=&Package%5Broute%5D=&Package%5Baccount_type%5D=&Package%5Bshow_deleted%5D=0&ajax=package-grid

@jackkitley
Copy link
Author

I fixed this by adding the following to my URL Manager->Rules:

'module:w+/controller:w+/action:w+'=>'//',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant