You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
The temporary solution is to revert back to package 1.1.29.
There might be a possibility to update jquery to newer versino using client script, but it has to be tested which version will work properly.
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:
More info - the issue occurs in the function ajax.preFilter:
Additional info
The text was updated successfully, but these errors were encountered: