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
The problem is related to MultiSelect combined with a table.
I'm new to laravel so I do not know how to properly override a file, but the problem is located here: "vendor/laravelcollective/html/src/FormBuilder.php"
There is a function called: getSelectedValue if you change the in_array parameter from true (strict compare) to false (loose compare) the problem is solved.
This is related to the fact that in case the MultiSelect is just predefined, it takes the strings and performs a string to string compare.
However if you combine the MultiSelect with a table, it will take the selected items as a string and the option values as integers. So it will compare strings with integers and returns false due to the strict warning.
I have two modules.
Facility- id, title,
1 - Wifi
2- Parkng
3- Pickup/drop
4-
Hotels- id, name, facilities (multiselect)
Data saved in hotels table as
1, Abc, ["1", "2"]
2, xyz, ["1", "3"]
Problem is that if user search wifi then how to show hotels having facility 1 so on?
The text was updated successfully, but these errors were encountered: