When you open an url with filtered data inside the url, a error will appear in the console which comes from functions.js
Due to this, any change made to the filtered page afterwards, will reset the whole table.
reproduce: enable querybuilder, open users page, create a filter, refresh page, error in console.
functions.js:678 Uncaught TypeError: Cannot read properties of undefined (reading 'UsersDataTable')
at HTMLButtonElement. (functions.js:678)
at HTMLDocument.dispatch (vendor.min.js:1)
at HTMLDocument.m.handle (vendor.min.js:1)
at Object.trigger (vendor.min.js:1)
at HTMLButtonElement. (vendor.min.js:1)
at Function.each (vendor.min.js:1)
at S.fn.init.each (vendor.min.js:1)
at S.fn.init.trigger (vendor.min.js:1)
at S.fn.init.S.fn. [as click] (vendor.min.js:1)
at users?q[condition]=AND&q[rules][0][id]=name&q[rules][0][field]=name&q[rules][0][type]=string&q[rules][0][input]=text&q[rules][0][operator]=equal&q[rules][0][value]=Stefan&q[valid]=true:1080
QueryBuilder bug
11
Jan
Hello Stefan, do you see this error on Demo installations as well?
In what demo did you enable this querybuilder feature? can’t find any.
Can you please let me know which demo has querybuilder enabled so I can have a look? Thanks.
Its enabled under https://demo.laraship.com/
Yes, same problem in your demo.
reproduce:
https://demo.laraship.com/users?q%5Bcondition%5D=AND&q%5Brules%5D%5B0%5D%5Bid%5D=name&q%5Brules%5D%5B0%5D%5Bfield%5D=name&q%5Brules%5D%5B0%5D%5Btype%5D=string&q%5Brules%5D%5B0%5D%5Binput%5D=text&q%5Brules%5D%5B0%5D%5Boperator%5D=equal&q%5Brules%5D%5B0%5D%5Bvalue%5D=Marwan&q%5Bvalid%5D=true
Uncaught TypeError: Cannot read properties of undefined (reading ‘UsersDataTable’)
thanks for reporting this, we have passed the issue to the development team and they are working on it
great thank you
Hi,
It seems not to work yet.
If you for example filter on a user, and then change the filter or click on a table header for sorting, it resets the search but keeps the filter in the url and UI.
Any news? Problem is still there