Product table error in core PDF templates when products are empty #523

Closed
jakejackson1 opened this Issue Nov 19, 2016 · 0 comments

Projects

None yet

1 participant

@jakejackson1
Member

Warning: Invalid argument supplied for foreach() in /srv/www/wordpress-default/wp-content/plugins/gravity-forms-pdf-extended/src/helper/fields/Field_Products.php on line 158

@jakejackson1 jakejackson1 added the Bug label Nov 19, 2016
@jakejackson1 jakejackson1 modified the milestone: v4.1 Nov 21, 2016
@jakejackson1 jakejackson1 pushed a commit that referenced this issue Nov 22, 2016
Jake Jackson Resolve PHP error when no products completed in the table
The foreach loop threw an error when the products array is empty. This is because our `is_empty()` check was only seeing if there WERE product fields in the form and not IF those fields were filled in.

Fixes #523
9310cd6
@jakejackson1 jakejackson1 closed this in #537 Nov 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment