Openbravo Issue Tracking System - POS2 |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0051642 | POS2 | POS | public | 2023-02-17 13:10 | 2024-04-30 16:58 |
|
Reporter | montse_cabanas | |
Assigned To | cberner | |
Priority | high | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 24Q3 | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0051642: Error send email with variables |
Description | When variables (@var@) are put in the subject or body of an email, the variable is not replaced by its data |
Steps To Reproduce | If you define in the Email Configuration template replacements for subject, body or attachment they don’t apply
1-In Backoffice Document Types window > Template Definition and Email Configuraiton tabs put some @variables@ to apply for POS Order
2-Send email of a ticket from POS: the replacement won’t happen in the subject, body nor attachment file name |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | backport | 0055379 | 24Q2 | closed | cberner | POS2 | Error send email with variables | related to | defect | 0054938 | | closed | cberner | Openbravo ERP | Send Email : we need to support CSS @ notations (which means do not replace not known variables) |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2023-02-17 13:10 | montse_cabanas | New Issue | |
2023-02-17 13:10 | montse_cabanas | Assigned To | => montse_cabanas |
2023-02-17 13:10 | montse_cabanas | File Added: e575e658-bd7b-4b04-b834-582cbebae0c5.png | |
2023-02-17 13:10 | montse_cabanas | Triggers an Emergency Pack | => No |
2023-02-17 13:11 | montse_cabanas | File Added: ccaca7a7-de6d-404e-aba1-7e9a7c527a34.png | |
2023-02-17 13:16 | hgbot | Note Added: 0146698 | |
2023-02-17 15:32 | aferraz | File Deleted: e575e658-bd7b-4b04-b834-582cbebae0c5.png | |
2023-02-17 15:32 | aferraz | File Deleted: ccaca7a7-de6d-404e-aba1-7e9a7c527a34.png | |
2023-02-17 15:34 | hgbot | Resolution | open => fixed |
2023-02-17 15:34 | hgbot | Status | new => closed |
2023-02-17 15:34 | hgbot | Fixed in Version | => 23Q2 |
2023-02-17 15:34 | hgbot | Note Added: 0146709 | |
2023-02-17 15:34 | hgbot | Note Added: 0146710 | |
2023-03-02 11:13 | hgbot | Note Added: 0147224 | |
2023-03-02 11:34 | hgbot | Note Added: 0147227 | |
2023-03-02 11:35 | aferraz | Note Added: 0147228 | |
2023-03-02 11:35 | aferraz | Status | closed => new |
2023-03-02 11:35 | aferraz | Resolution | fixed => open |
2023-03-02 11:35 | aferraz | Fixed in Version | 23Q2 => |
2023-11-30 16:44 | aferraz | Assigned To | montse_cabanas => Retail |
2024-02-09 13:11 | avicente | Priority | normal => high |
2024-02-20 09:13 | guillermogil | Status | new => acknowledged |
2024-02-22 08:15 | guillermogil | Type | defect => design defect |
2024-04-05 12:13 | avicente | Note Added: 0162880 | |
2024-04-05 12:13 | avicente | Type | design defect => defect |
2024-04-05 12:13 | avicente | Status | acknowledged => scheduled |
2024-04-05 12:15 | avicente | Assigned To | Retail => Triage Platform Base |
2024-04-29 14:13 | hgbot | Note Added: 0163902 | |
2024-04-30 16:53 | cberner | Status | scheduled => acknowledged |
2024-04-30 16:53 | cberner | Status | acknowledged => scheduled |
2024-04-30 16:53 | cberner | Assigned To | Triage Platform Base => cberner |
2024-04-30 16:58 | hgbot | Resolution | open => fixed |
2024-04-30 16:58 | hgbot | Status | scheduled => closed |
2024-04-30 16:58 | hgbot | Fixed in Version | => 24Q3 |
2024-04-30 16:58 | hgbot | Note Added: 0163962 | |
2024-04-30 16:58 | hgbot | Note Added: 0163963 | |
2024-04-30 17:00 | cberner | Relationship added | related to 0054938 |
Notes |
|
(0146698)
|
hgbot
|
2023-02-17 13:16
|
|
|
|
(0146709)
|
hgbot
|
2023-02-17 15:34
|
|
|
|
(0146710)
|
hgbot
|
2023-02-17 15:34
|
|
|
|
(0147224)
|
hgbot
|
2023-03-02 11:13
|
|
|
|
(0147227)
|
hgbot
|
2023-03-02 11:34
|
|
|
|
|
|
|
|
51642 is not a design defect as it works in previous version. For the customers is a regression. |
|
|
(0163902)
|
hgbot
|
2024-04-29 14:13
|
|
|
|
(0163962)
|
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: 4e74f85fda3ea4cd01bafc91f0643410575f1e6e
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 30-04-2024 16:49:02
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/4e74f85fda3ea4cd01bafc91f0643410575f1e6e [^]
Fixes ISSUE-51642: 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
---
|
|
|
(0163963)
|
hgbot
|
2024-04-30 16:58
|
|
|