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
I've used search select throughout my codebase and have appreciated the featured that automatically uses the "eq" predicate for the id field, located in the following code.
However, this feature is missing from the selected_list input. This causes my code to break with PG::UndefinedFunction: ERROR: operator does not exist: which I believe is because the query is trying to compare an integer against a string. If we added the conditional from the above code block to the below code, it should fix this issue.
I'd imagine this is preferable just to have consistent behavior across these similar input types. If someone has a workaround or is opposed to this change, please let me know!
The text was updated successfully, but these errors were encountered:
evanhoward-id
changed the title
Using _eq predicate for id in selected_list input
Using eq predicate for id in selected_list input
Jul 7, 2021
I've used search select throughout my codebase and have appreciated the featured that automatically uses the "eq" predicate for the id field, located in the following code.
activeadmin_addons/app/javascript/activeadmin_addons/inputs/search-select.js
Lines 32 to 38 in 7fc8d77
However, this feature is missing from the selected_list input. This causes my code to break with
PG::UndefinedFunction: ERROR: operator does not exist:
which I believe is because the query is trying to compare an integer against a string. If we added the conditional from the above code block to the below code, it should fix this issue.activeadmin_addons/app/javascript/activeadmin_addons/inputs/selected-list.js
Lines 39 to 41 in 7fc8d77
I'd imagine this is preferable just to have consistent behavior across these similar input types. If someone has a workaround or is opposed to this change, please let me know!
The text was updated successfully, but these errors were encountered: