Openbravo Issue Tracking System - Retail Modules
View Issue Details
0047395Retail ModulesWeb POSpublic2021-07-14 16:462021-09-08 07:48
Sergio_Gomez 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
RR21Q4 
Production - Confirmed Stable
2021-01-21
RR21Q2
https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/f54508b79167c058a8c1fa2e5bfa70ffcb549afe [^]
No
0047395: OB.UTIL.encodeXMLMultiLineComponent returns empty string if there are lines larger than the width in 21Q2
OB.UTIL.encodeXMLMultiLineComponent returns empty string for these case in 21Q2 while working correctly in earlier versions.
The only change is that in the OB.UTIL.wordwrap function that is called inside a .join('\n') has been removed;

In 19Q4.4:
return str.match(RegExp('.{1,' + width + '}(\\s|$)|\\S+?(\\s|$)', 'g')).join('\n');

In 21Q2:
return str.match(RegExp('.{1,' + width + '}(\\s|$)|\\S+?(\\s|$)', 'g'));
- In livebuilds 19Q4.4 release
- Login to the pos
- Open the console of the chrome developer tools
- Execute an example statement like
OB.UTIL.encodeXMLMultiLineComponent ('Line 1\nLine 2', 6)
to check the cases where the width is equal to or greater than the lines of the message.
- Execute another example statement like
OB.UTIL.encodeXMLMultiLineComponent ('Line 1\nLine 2', 5)
to check cases where the width is less than the lines of the message.

-Perform the same steps for livebuilds 21Q2 release and check that for the first case it works correctly while for the second it returns an empty string.
No tags attached.
depends on backport 0047639RR21Q3.2 closed ranjith_qualiantech_com OB.UTIL.encodeXMLMultiLineComponent returns empty string if there are lines larger than the width in 21Q2 
depends on backport 0047640RR21Q2.3 closed ranjith_qualiantech_com OB.UTIL.encodeXMLMultiLineComponent returns empty string if there are lines larger than the width in 21Q2 
caused by defect 0045707 closed rqueralta Incorrect field alignment when text needs to overflow (Hardware Manager) 
Issue History
2021-07-14 16:46Sergio_GomezNew Issue
2021-07-14 16:46Sergio_GomezAssigned To => Retail
2021-07-14 16:46Sergio_GomezTriggers an Emergency Pack => No
2021-07-14 16:56PracticsIssue Monitored: Practics
2021-08-05 09:50Sergio_GomezSummary0047395: OB.UTIL.encodeXMLMultiLineComponent returns empty string if there are lines larger than the width in 21Q2 => OB.UTIL.encodeXMLMultiLineComponent returns empty string if there are lines larger than the width in 21Q2
2021-09-02 17:35ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2021-09-02 17:35ranjith_qualiantech_comStatusnew => scheduled
2021-09-02 17:35ranjith_qualiantech_comRelationship addedcaused by 0045707
2021-09-07 04:19hgbotNote Added: 0131583
2021-09-07 07:26ranjith_qualiantech_comStatusscheduled => acknowledged
2021-09-07 07:26ranjith_qualiantech_comStatusacknowledged => scheduled
2021-09-07 07:28ranjith_qualiantech_comRegression level => Production - Confirmed Stable
2021-09-07 07:28ranjith_qualiantech_comRegression date => 2021-01-21
2021-09-07 07:28ranjith_qualiantech_comRegression introduced in release => RR21Q2
2021-09-07 07:28ranjith_qualiantech_comRegression introduced by commit => https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/f54508b79167c058a8c1fa2e5bfa70ffcb549afe [^]
2021-09-08 07:48hgbotResolutionopen => fixed
2021-09-08 07:48hgbotStatusscheduled => closed
2021-09-08 07:48hgbotNote Added: 0131629
2021-09-08 07:48hgbotFixed in Version => RR21Q4
2021-09-08 07:48hgbotNote Added: 0131630

Notes
(0131583)
hgbot   
2021-09-07 04:19   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/284 [^]
(0131629)
hgbot   
2021-09-08 07:48   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/284 [^]
(0131630)
hgbot   
2021-09-08 07:48   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 207cb8bf7fd098572754b15f4161dd598e236995
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-09-04T17:52:12+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/207cb8bf7fd098572754b15f4161dd598e236995 [^]

Fixed ISSUE-47395: Updated Util wordwrap function to append nextline character

---
M web/org.openbravo.mobile.core/source/utils/ob-utilities.js
---