Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowed Asset Volumes breaks existing upload fields #304

Open
pixelmachine opened this issue Jan 25, 2024 · 0 comments
Open

Allowed Asset Volumes breaks existing upload fields #304

pixelmachine opened this issue Jan 25, 2024 · 0 comments

Comments

@pixelmachine
Copy link

pixelmachine commented Jan 25, 2024

Description

If no Allowed Asset Volume is chosen then forms will trigger errors and cannot be edited.

Error is:

in_array(): Argument #2 ($haystack) must be of type array, string given
barrelstrength/sprout-forms/src/fields/formfields/FileUpload.php
line 162

How to reproduce

Don't select any "Allowed asset volumes" and try to edit a form with a file upload field.

Presumably if none are selected, then "All" should be selected by default. I think that's how it's done in Craft asset fields.

Sprout Version

3.14.0

Craft Version

3.9.10

Database Type Version

NA

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

No branches or pull requests

2 participants