select2_ajax is adding _text on search filter #1391
Replies: 1 comment
-
|
The issue you're experiencing—where the select2_ajax filter appends a _text parameter to the URL (e.g., script_number_text)—is a known behavior in Backpack. This can cause artifacts in the URL and potentially affect your filtering logic or results. Why does this happen?Backpack's select2_ajax filter, when a value is selected, appends both the value and its display text (with a _text suffix) to the URL. This is intended for display purposes but can interfere with filtering if not handled properly. How to fix or mitigate this1. Ignore the
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Using
"backpack/crud": "^6.7", Script Model is expected to have more than 100k records. Therefore, to execute filter should be done using ajax request and not just a dropdown. However, when I select from the ajax result, it appends_texton the URL affecting the search result. How to fix this?// Crud Controller
// OtherController
// Model
Beta Was this translation helpful? Give feedback.
All reactions