Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Empty array causes error #22

Open
FiHoEco opened this issue Mar 2, 2020 · 0 comments
Open

Empty array causes error #22

FiHoEco opened this issue Mar 2, 2020 · 0 comments

Comments

@FiHoEco
Copy link

FiHoEco commented Mar 2, 2020

Multiselect::$data” attribute cannot be blank or an empty array. php is the error produced when given an empty array.

Could we instead have it so that nothing appears in the drop-down otherwise it massively limits our ability to use the widget without checking if it's empty first and then we don't have that form attribute available to use on submit (this was unexpected behaviour from the plugin since Select2 accepts an empty array). Many people won't have test cases for it if they're dynamically populating the drop-down and don't expect the array to ever return empty unless an edge case is hit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant