-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
The pagination and or filtration of grid views stops working upon trying to filter using Ajax request. This is caused by an updated jquery-bbq library. The library fails in "qs.HasOwnProperty" method.
What steps will reproduce the problem?
Trying to refresh, paginate or filter the Yii gridview causes javascript to fail. This is done even before any AJAX request is done.
Simple call for: $("#grid-view").yiiGridView("update", {url: refreshURL}); will cause the bug.
What is the expected result?
The grid view is properly updated and the ajax request is processed.
What do you get instead?
Error response:
index:461 Uncaught TypeError: qs.hasOwnProperty is not a function
at index:461:12
at Function.<anonymous> (jquery.min.js:4:17819)
at Function.each (jquery.min.js:2:2881)
at g (jquery.min.js:4:17785)
at Ub (jquery.min.js:4:17922)
at Function.ajax (jquery.min.js:4:21073)
at HTMLDivElement.<anonymous> (jquery.yiigridview.js:355:21)
at Function.each (jquery.min.js:2:2881)
at n.fn.init.each (jquery.min.js:2:846)
at n.fn.init.update (jquery.yiigridview.js:260:16)
More info - the issue occurs in the function ajax.preFilter:
$.ajaxPrefilter(function (options, originalOptions, jqXHR) {
var qs = $.deparam.querystring(options.url);
if (qs.hasOwnProperty("ajax") && qs.ajax == "grid-view")
Additional info
| Q | A |
|---|---|
| Yii version | 1.1.30 |
| PHP version | 8.2 |
| Operating system | Debian |
| jQuery version | v1.12.4 (Yii packed one) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels