Openbravo Issue Tracking System - POS2 |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0055167 | POS2 | Core | public | 2024-04-11 11:13 | 2024-04-11 12:44 |
|
Reporter | cberner | |
Assigned To | cberner | |
Priority | normal | Severity | major | Reproducibility | sometimes |
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 | 0055167: Some labels are not shown properly in the application |
Description | Some labels are not shown in the application, after further investigation, it seems that they are not properly loaded in AppInitializer.js.
Due to Vite update, the way json files are imported with translations changed from require to await import and as such it needs modification. |
Steps To Reproduce | - Reproducible with SSMS(but probably there are other ways)
1. Npm start with ssms
2. Login and then click on Distribution Order Issue
3. Click on New DOi
See that several labels are not translated/shown properly. |
Proposed Solution | Modify AppInitializer.js to do the following:
await import(....json).default;
The default is what we want, and not the full imported ES module. This is already done for other imported files. |
Additional Information | |
Tags | No tags attached. |
Relationships | caused by | feature request | 0054570 | | closed | cberner | CRA should be replaced by an alternative, Vite |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2024-04-11 11:13 | cberner | New Issue | |
2024-04-11 11:13 | cberner | Assigned To | => cberner |
2024-04-11 11:13 | cberner | Triggers an Emergency Pack | => No |
2024-04-11 11:13 | cberner | Relationship added | caused by 0054570 |
2024-04-11 11:15 | hgbot | Note Added: 0163089 | |
2024-04-11 12:44 | hgbot | Resolution | open => fixed |
2024-04-11 12:44 | hgbot | Status | new => closed |
2024-04-11 12:44 | hgbot | Note Added: 0163096 | |
2024-04-11 12:44 | hgbot | Fixed in Version | => 24Q3 |
2024-04-11 12:44 | hgbot | Note Added: 0163097 | |