Commit Graph

9 Commits

Author SHA1 Message Date
Rostislav Wolny
dd0a19a314 Add BC for importing older exported templates
We allow exporting templates as JSON and templates exported from the older plugin versions use thumbnail key for storing the image data.
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
58bcca67ed Allow saving only base64 encoded jpeg
The tool that we use on the frontend generates jpegs. This check adds a protection against saving different type of data.
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
6cfcf4b5b5 Add image compression when saving the newsletter template image
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
aed122f4a2 Update domain of the thumbnail in case the site domain changed
This handle cases when admin changes the site URL.
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
7fc55cf41c Fix namespace in NewsletterTemplatesRepository test
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
2bb74c6302 Add service for saving templates base64 data to image files
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
b51f7b2d0e Save new templates image data to the new columns
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Jan Jakeš
7e60e9ba7e Make NewsletterTemplateEntity name mandatory
[MAILPOET-2647]
2020-03-23 00:33:40 +01:00
Jan Jakeš
72af35e2af Rewrite newsletter template model test to Doctrine repository test
[MAILPOET-2645]
2020-03-23 00:33:40 +01:00