PDA

View Full Version : [FIXED-EXTJSIV-314] WebStorageProxy: getRecord() doesn't set id property for record



uzver
24 Mar 2011, 11:59 AM
Problem:

localTestStore - instance of Store with proxy: 'localstorage'



localTestStore.add({ test: 'blabla"});
localTestStore.sync();

after that:


localTestStore.data.first().getId();

return 1.
Than reload page and invoke this:


localTestStore.load();
localTestStore.data.first().getId();

last line return "undefined" (uncorrect).
Any changes after reloading page are saved to localStore uncorrectly.

FIX:
Add to WebStorageProxy after line 200:


record.data[record.idProperty] = id;

yhwh
25 Mar 2011, 6:50 PM
Fixed. Thanks for reporting.