Fastspot / bigtree-form-builder

Form Builder Extension for BigTree 4.2+
4 stars 13 forks source link

Upload does not show what extensions are allowed. #17

Closed doonmok closed 1 year ago

doonmok commented 1 year ago

The upload field does not show what extensions are allowed. \templates\routed\btx-form-builder\field-types\draw\upload.php

On line 22, the if statement does not seem to work. I think the empty function won't work with an associative array.

!empty($field_data["allowed_fieldtypes"])

doonmok commented 1 year ago

Tim, I think I figured out the issue. On line 22, it should be

!empty($field_data["allowed_filetypes"] instead of !empty($field_data["allowed_fieldtypes"]

_filetypes instead of _fieldtypes

\templates\routed\btx-form-builder\field-types\draw\upload.php

timbuckingham commented 1 year ago

Good catch! I've pushed up Form Builder 2.7.1 that fixes this. Sorry for the long delay on this fix.