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

Problem when using multi-dimensional url parameters #234

Open
adam-clarey opened this issue Jan 29, 2016 · 0 comments
Open

Problem when using multi-dimensional url parameters #234

adam-clarey opened this issue Jan 29, 2016 · 0 comments

Comments

@adam-clarey
Copy link

A simple problem to replicate, load a page with a dynatable on it and put the following as paramters in the url.

?field[0][this]=this&field[0][that]=that&field[0][other]=other

When the page is loaded, dynatable actually alters the url to become ?field[0][other]=other

It's because of a bug on line 1493:

hash[k] = $.extend({}, hash[k], v);

Because the object is nested you need to tell the $.extend function to recurse. So changing the above to:

hash[k] = $.extend(true, hash[k], v);

Fixes the problem.

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