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

View Revisions: Issue #27166 Back to Issue ]
Summary 0027166: When the cache has no data for a user, the WebPOS should not try to load the non existent cache
Revision 2014-08-09 02:13 by Orekaria
Steps To Reproduce 1. Login in the WebPOS
2. In OB.DAL.find uncomment the following lines (aka simulate an error):
            var i, collectionType = OB.Collection[model.prototype.modelName + 'List'] || Backbone.Collection,
                collection = new collectionType(),
                len = result.rows.length;
            if (len === 0) {
              success(collection, args);
            } else {
              for (i = 0; i < len; i++) {
                collection.add(OB.Dal.transform(model, result.rows.item(i)));
              }
              success(collection, args);
            }
3. Reload the WebPOS (F5)
4. Verify that the attached screen is shown

or

Clear the cache while loading the WebPOS

or

in ob-terminal-model.js, in the loginUsingCache function, clear the users as is returned by the OB.Dal function
Revision 2014-08-01 17:20 by Orekaria
Steps To Reproduce Clean the cache while loading the WebPOS

or

in ob-terminal-model.js, in the loginUsingCache function, clear the users as is returned by the OB.Dal function


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker