QueryBuilder bug

Laraship QuestionsCategory: TechnicalQueryBuilder bug
Stefan asked 3 years ago
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
laraship Staff replied 3 years ago

Hello Stefan, do you see this error on Demo installations as well?

st3fan replied 3 years ago

In what demo did you enable this querybuilder feature? can’t find any.

st3fan replied 3 years ago

Can you please let me know which demo has querybuilder enabled so I can have a look? Thanks.

laraship Staff replied 3 years ago

Its enabled under https://demo.laraship.com/

laraship Staff replied 3 years ago

thanks for reporting this, we have passed the issue to the development team and they are working on it

st3fan replied 3 years ago

great thank you

st3fan replied 3 years ago

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.

st3fan replied 3 years ago

Any news? Problem is still there

1 Answers
laraship Staff answered 3 years ago
Hello Our team has fixed the issues and release the fix, please update the foundation module to get the latest patch 
st3fan replied 3 years ago

thanks!