can't use Published, Draft, Trash filters on module index

I see the buttons, they show the correct counts in the parenthesis, but when I click on them, I always see all the items. (This is also true on the users page with the Active, Disabled and Trash buttons: The counts are correct, but I always see all users in the list.) Any ideas? I'm new to Twill so sorry if I forgot something obvious.
ifox
ifox436d ago
Hi @Pauly this is definitely unexpected. Can you share you PHP, Laravel and database type/version?
Pauly
Pauly410d ago
Hi @ifox.dev, sorry for the slow response, still running into this on all my modules. Here is the version info: PHP 8.1, Laravel 9, MySQL 8.0.26 I should also note that in addition to the filters not changing what's shown in the index, I have a module which I believe should allow sorting of the index. When I try to sort, the little arrow appears and flips, but again no change to what's shown in the index. I'm not sure how the "Search" field is supposed to behave, but again, it appears to have no effect on the index items listed. Thanks for your assistance.
ifox
ifox409d ago
Hi @Pauly it seems like it could the query string being ignored by your web server, as all these features depend on it.
Pauly
Pauly409d ago
@ifox.dev, thanks for the response what you're saying makes sense. To test, I tried overriding the index() method on my admin controller thusly: public function index($parentModuleId = null) { $uri = \Request::getRequestUri(); $query = parse_url($uri)['query']; dd($query); } When I do this, I see any querystrings included at the end of the URL dumped out. So the querystring is being successfully passed through to my admin controller. This is the same Laravel setup I have used for other applications and never had a problem with querystrings. It seems they are just being ignored by Twill for some reason. @ifox.dev, actually let me refine my response. I checked further that the querystring is being parsed by doing: dd(\Request::all()); When I do this, I get an empty array in my admin controllers. My front-end controllers, on the other hand, do show a correctly parsed querystring. But for some reason, it is coming across as empty string in my admin controllers. As I mentioned above, the querystring is visible in the Request object when you use getRequestUri(). I'm puzzled why the parsed querystring would be missing from the Request object but only in my Twill admin controllers..... @ifox.dev, sorry, I mean empty array (not empty string) in my admin controllers. I need a little more coffee....
ifox
ifox409d ago
yeah this is really strange, haven't heard of that issue before could you possibly share a repro? any custom or package middleware you would have added on your twill routes?
Want results from more Discord servers?
Add your server
More Posts
medias XHR request with wrong schemeGreetings... I'm having trouble with accessing media library in the admin area in production. Mixeremove positioning and nesting from the page indexGood morning. Tell me how to remove positioning and nesting from the page index in the admin panel? Connecting additional fields depending on the value in the record when selected in the browser compoGood morning. Can you tell me if it is possible to implement the doing in twill? I have a browser iCustom function in a Module ControllerI need to trigger a custom function that is run after a user clicks "Update" for a post in a Twill mTiptap WYSIWYGHi everyone, I would like to know if there is a way to use toolbar align options with tiptap type wySorting by a translation field (ie, title)Hi everyone, I feel like I must be missing something simple (as usual) or am making something overlyProblem with displaying headers if the site is in two languagesGood morning. I decided to look at twill 3 version. I use two languages (ru-main, en-I want to add Issuing rights to upload to the media libraryGood afternoon! Tell me how to give the right dip for the defined role to upload files / images to tAttribute [singleton] does not exist.Hello there im working in a twill website,and i got this error , can you help me sloving this error Disable live - draftAny way to disable this feature on forms? Have tried multiple things, but non of it seems to work.output selected blocks on the front in different placesGood afternoon! Tell me how you can draw blocks on the front selectively? Example Block 1 text teDeleting an entry causes 500 error unless entry is destroyedBeen struggling with this for a bit and I'm out of ideas. I've got a browser that contains a list ofBrowser route for sub-menu (primary navigation)How to setup a browser connected to a module outside of the navigation group? See images for clarifGet link to file in media libraryGood afternoon guys. Tell me how you can add the output of links to files when loading in the librarBrowser fields the id of the object doesn't saveBrowser options show list with logo and name, gets attached correctly including logo and name. When InvalidArgumentExceptionUrlBuilder must be passed a string domainGetting this error after switching to Imgix from Glide in MEDIA_LIBRARY_IMAGE_SERVICE.Naming many-to-many tables in Twill and LaravelHi everyone! This may ultimately be more of a Laravel question than a Twill question, but any help iupload image in production return errorhello everyone ,trying to upload image in production return me this error localy everything works fiIssue with locales and creating model records from a custom pageI've built a CSV Importer using a custom page, and have gotten to the point where I can successfullylogin admin panel redirect to login page in each submit in livehello everyone , trying to login in live admin panel login redirect me to login every time i attemt