Skip to content

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

@jackkitley

Description

@jackkitley

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions