Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0038706
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2018-06-05 17:272018-06-21 09:45
Reporterjorge-garciaView Statuspublic 
Assigned Tojorge-garcia 
PrioritynormalResolutionfixedFixed in VersionRR18Q3
StatusclosedFix in branchFixed in SCM revision5032c616bede
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0038706: lastUpdatedTimestamp from models are not correctly remove in some cases

DescriptionIn ob-dal.js exists this piece code:
  OB.UTIL.localStorage.removeItem('POSLastTotalRefresh');
  _.forEach(models, function (model) {
    OB.UTIL.localStorage.removeItem('lastUpdatedTimestamp' + model.modelName);
  });

The problem is that not all the models has modelName defined, so theitem is never removed in case a full refresh fails
Steps To Reproduce-
Proposed SolutionThe solution is to verify the modelName exists, and, if not, search it into the prototype of the model
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0105024)
hgbot (developer)
2018-06-08 08:33

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 5032c616bede6356831215d6957c23dac8a8b6fd
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed Jun 06 09:33:37 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/5032c616bede6356831215d6957c23dac8a8b6fd [^]

Fixed issue 38706: lastUpdatedTimestamp from models are not correctly remove
in some cases

The solution is to verify the modelName exists, and, if not, search the
modelName into the prototype of the model

---
M web/org.openbravo.mobile.core/source/data/ob-dal.js
---

- Issue History
Date Modified Username Field Change
2018-06-05 17:27 jorge-garcia New Issue
2018-06-05 17:27 jorge-garcia Assigned To => jorge-garcia
2018-06-05 17:27 jorge-garcia Triggers an Emergency Pack => No
2018-06-06 10:36 jorge-garcia Status new => scheduled
2018-06-08 08:33 hgbot Checkin
2018-06-08 08:33 hgbot Note Added: 0105024
2018-06-08 08:33 hgbot Status scheduled => resolved
2018-06-08 08:33 hgbot Resolution open => fixed
2018-06-08 08:33 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/5032c616bede6356831215d6957c23dac8a8b6fd [^]
2018-06-21 09:45 marvintm Review Assigned To => marvintm
2018-06-21 09:45 marvintm Status resolved => closed
2018-06-21 09:45 marvintm Fixed in Version => RR18Q3


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker