Openbravo Issue Tracking System - POS2
View Issue Details
0052907POS2POSpublic2023-07-03 10:062023-07-21 14:23
malsasua 
meriem_azaf 
highmajoralways
closedfixed 
5
 
23Q4 
Coding ( Testing )
2023-06-05
https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/be2b7bb397472c32d16993c52cddad94d1ce80f2 [^]
No
0052907: Login offline is not working
The login offline is not working, it is returning error:
Error
Cannot read properties of undefined (reading 'OBC2_BarcodeScanner_avgTimeByChar')

1. do login with user vallblanca
2. complete a ticket
3. click in "vallblanca" button -> do logout
4. open dev tools -> network -> offline
5. login with user vallblanca
6. complete a ticket
7. click in "vallblanca" button -> do logout
8. refresh browser (F5)
9. login with user vallblanca -> error:
Cannot read properties of undefined (reading 'OBC2_BarcodeScanner_avgTimeByChar')

No tags attached.
caused by feature request 0052092 closed gonzalo_fernandez Store a single copy of the Terminal in IndexedDB 
related to defect 0052271 closed meriem_azaf Till is blocked if we try to access keymap editor in offline mode - when terminal still does not know that it was offline 
png Screenshot from 2023-07-03 10-06-02.png (22,458) 2023-07-03 10:07
https://issues.openbravo.com/file_download.php?file_id=18715&type=bug
png
Issue History
2023-07-03 10:06malsasuaNew Issue
2023-07-03 10:06malsasuaAssigned To => Retail
2023-07-03 10:06malsasuaTriggers an Emergency Pack => No
2023-07-03 10:07malsasuaFile Added: Screenshot from 2023-07-03 10-06-02.png
2023-07-03 10:47ebecerraAssigned ToRetail => ebecerra
2023-07-03 10:48ebecerraStatusnew => scheduled
2023-07-13 09:57guilleaerAssigned Toebecerra => meriem_azaf
2023-07-20 10:26meriem_azafRelationship addedcaused by 0052092
2023-07-20 10:28meriem_azafRelationship addedrelated to 0052271
2023-07-20 10:34meriem_azafRegression level => Coding ( Testing )
2023-07-20 10:34meriem_azafRegression date => 2023-06-05
2023-07-20 10:34meriem_azafRegression introduced by commit => https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/be2b7bb397472c32d16993c52cddad94d1ce80f2 [^]
2023-07-20 13:54hgbotNote Added: 0152726
2023-07-21 14:23hgbotResolutionopen => fixed
2023-07-21 14:23hgbotStatusscheduled => closed
2023-07-21 14:23hgbotFixed in Version => 23Q4
2023-07-21 14:23hgbotNote Added: 0152798
2023-07-21 14:23hgbotNote Added: 0152799

Notes
(0152726)
hgbot   
2023-07-20 13:54   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1177 [^]
(0152798)
hgbot   
2023-07-21 14:23   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: a04ceb6d288590fe2e50d631541027f68c98d35e
Author: Meriem Azaf <meriem.azaf@openbravo.com>
Date: 21-07-2023 12:22:55
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/a04ceb6d288590fe2e50d631541027f68c98d35e [^]

Fixes ISSUE-52907: Login offline is not working

The login offline is not working, it is returning error: Error Cannot read properties of undefined (reading 'OBC2_BarcodeScanner_avgTimeByChar').

The problem here that the property permissions was null in dbTerminal in restoreSession and undifined in LoginProcess. So we get it from the dbUser.userProps.

---
M web-jspack/org.openbravo.core2/src/core/authentication/LoginProcess.js
M web-jspack/org.openbravo.core2/src/core/authentication/RestoreSession.js
---
(0152799)
hgbot   
2023-07-21 14:23   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1177 [^]