Twig filter/function postoffice_image_embed only embeds the last image

Created on 28 April 2023, almost 2 years ago

Problem/Motivation

If multiple images are to be embedded into a message using the postoffice_image_embed twig filter/function, only the last instance gets actually attached and embedded into the message.

Steps to reproduce

Create a custom email template with multiple calls to postoffice_image_embed.

Proposed resolution

Use generated $cid as the array index of the postofficeImageEmbeds array.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

🇨🇭Switzerland znerol

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024