Only one Gravity Form attachment working (fix provided)
-
Hi,
I’m actually working on a website on which we are using your plugin and Gravity Forms, but we faced an issue with the mails attachments.
In fact, only one attachment was sent even if there was more than one, it was caused by what I think to be an error in the code responsible for this functionality, we fixed it but as we are using Composer to manage our plugins, our modification will be overridden when your plugin will be updated.
Here is the working code for the file sendinblue.php (lines 1082 to 1096) could you fix that bug in the next updates ?
Thank you,
Léo.// Attachments. $attachment_content = array(); if ( ! empty( $attachments ) ) { foreach ( $attachments as $attachment ) { if ( !empty( $attachment ) ) { $content = self::getAttachmentStruct( $attachment ); if ( ! is_wp_error( $content ) ) { $attachment_content = array_merge( $attachment_content, array( $content ) ); } } } if ( !empty( $attachment_content ) ) { $data["attachment"] = $attachment_content; } }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Only one Gravity Form attachment working (fix provided)’ is closed to new replies.