(0163964)
|
hgbot
|
2024-04-30 16:58
|
|
Directly closing issue as related merge request is already approved.
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 6b1988fb2d7e0e64470237371880a95474691caf
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 30-04-2024 16:54:12
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/6b1988fb2d7e0e64470237371880a95474691caf [^]
Fixes ISSUE-55379: Send email variables not applied or failing with CSS @media notation
Variables are @variableName@ strings in the email template that are
replaced by their respective property value. Previously only those
strings that match @variableName @ (see the white-space) were being
replaced, which was wrong.
We changed to replace @variableName@, removing that white-space. This
resulted in some templates failing due to usage of css @media notations,
to fix this, the replacement method was changed from
String.replaceFirst, which accepted a regex string, to
StringUtils.replaceOnce, which accepts a text search string, which will
not trigger regex pattern errors.
This should result in that we can use @variableName@ in emails, and also
css @media properties. If a variable does not exist, it will not be
replaced.
---
M src/org/openbravo/pos2/mailing/Mailer.java
---
|
|