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

Get correct feed_id for notification attachment #168

Closed doekenorg closed 1 year ago

doekenorg commented 1 year ago

This PR fixes #167

The problem is that the GFExcelOutput::getFeed() method will return the first feed it finds, if no feed_id was provided.

Therefor the attachment can locate the wrong feed; which does not have the proper disabled fields; so it just shows everything.

Primary fix is to include the correct feed id in the attachment; coming from the new Addon. Secondary fix is to only retrieve the feed, if the feed_id was set.