13 Dec 2010 12:08 AM #1
[FIXED] Invalid id for records loaded from local storage
Sencha Touch version tested:
- When a store using a LocalStorageProxy is loaded, its records do not contain the correct id. Instead of having the id present in the local storage, a auto generated id is assigned.
- So next, the getId function of record and the indexOfId function of store do not behave as expected.
- The problem seems to be in the getRecord function of WebStorageProxy class : when the record is instantiated, the id is not passed to the constructor.
record = new Model(data);
record = new Model(data, id);
13 Dec 2010 10:45 AM #2
By tomalex0 in forum Sencha Touch 1.x: DiscussionReplies: 2Last Post: 20 Dec 2010, 6:24 AM
By Akhenaten in forum Sencha Touch 1.x: DiscussionReplies: 6Last Post: 19 Dec 2010, 5:36 PM
By omarc in forum Sencha Touch 1.x: BugsReplies: 2Last Post: 22 Nov 2010, 6:03 PM
By rdougan in forum Sencha Touch 1.x: BugsReplies: 2Last Post: 3 Jun 2010, 10:53 AM
By PromaneX in forum Community DiscussionReplies: 0Last Post: 2 Jun 2008, 4:53 AM