GravityKit / GravityExport-Lite

GravityExport Lite. Export all Gravity Forms entries to Excel (.xlsx) via a secret (shareable) url.
https://gfexcel.com
GNU General Public License v2.0
12 stars 8 forks source link

Values containing arrays may be returned as string causing errors gp media library #161

Closed doekenorg closed 1 year ago

doekenorg commented 1 year ago

This PR Resolves #152

rafaehlers commented 1 year ago

@doekenorg any tips on how I could test this?

doekenorg commented 1 year ago

@doekenorg any tips on how I could test this?

@rafaehlers ah yes. Install GravityPerks Media Library. Add an upload field with multiple uploads, and activate storing of files in Media Library. Then fill out the form with a few files.

Make sure you are exporting the GPML ID field for that upload field (this is an extra meta field). Once exporting the old version will give you 'Array' while the new will give you multiple values. And multiple rows if you have that setting enabled.

Remove the field temporarily from MetaField.php to see what happens when it isn't a GPML field. It will create a comma-separated list.