Support » Plugin: Pronamic Pay » Entries in Excel Download resets selected choices

  • Resolved Doeke Norg

    (@doekenorg)


    Hi @remcotolsma,

    I’m the developer of Gravity Forms Entries in Excel. One of my users also uses your plugin. He told me that when he downloads an Excel, the selected options of his field are deselected. Seeing as my plugin doesn’t alter fields I was a bit baffled.

    When my plugin makes the Excel file, it updates a download counter, that is stored as metadata on the form. I use GFFormsModel::update_form_meta for this. But because this download is triggered by a URL outside of the wp-admin (it uses secret hash URLS) the plugin decides to reset these values, because it assumes I’m showing them on the frontend.

    I could help my user for now by circumventing the download counter for the time being, but I’d like to fix this. The code I’m referring to is: https://github.com/wp-pay-extensions/gravityforms/blob/develop/src/PaymentMethodsField.php#L238-L241.

    Is it possible to add a check to it, that it is NOT updating the values at that time? Perhaps you could add a filter for others (like me). Something like: https://gist.github.com/doekenorg/d8561e2c9a4fb3c4a90cd6987d2c4cca

    If you want me to make a PR that would be no problem. Please let me know.

    Kind regards,

    Doeke

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Reüel van der Steege

    (@pronamic_reuel)

    A future plugin update will include a change which should improve compatibility (without an extra filter).

    Plugin Author Reüel van der Steege

    (@pronamic_reuel)

    Update: the Pronamic Pay version 5.9.0 release unfortunately didn’t resolve the issue completely.

    I had a look at the issue again today and was able to resolve it by moving some code around 😉 The fix will be included in the next plugin release.

    Thanks for the update

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Entries in Excel Download resets selected choices’ is closed to new replies.