GravityKit / GravityView

The best and easiest way to display Gravity Forms entries on your website.
https://www.gravitykit.com/products/gravityview/
245 stars 62 forks source link

Fixed Custom Post Fields acting as File Uploads on Entry Edit Page #1971

Closed doekenorg closed 5 months ago

doekenorg commented 6 months ago

This PR Closes #1317

The type checking for upload fields excluded custom fields by default by not using get_input_type(). That already provides the right type for the custom post fields.

And because files are not provides by an input field during updating a different field, I skip the get_value_save_entry() method, as it has no value, and removes the image completely.

rafaehlers commented 6 months ago

Hey! It works 👏👏👏✅❤️

https://www.loom.com/share/f894616dadcd428cb85398d86c676d81