-
26 Jan 2012 4:06 AM #1
PR4 getTime() in Ext.data.proxy.WebStorage.setRecord
PR4 getTime() in Ext.data.proxy.WebStorage.setRecord
This causes an error if rawData[name] is null
PHP Code://in Ext.data.proxy.WebStorage.setRecord
if (field.getType().type == 'date') {
data[name] = rawData[name].getTime();
} else {
data[name] = rawData[name];
}
-
26 Jan 2012 9:11 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,652
- Vote Rating
- 14
Thank you for the report.
-
27 Jan 2012 5:31 PM #3Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Haarlem, Netherlands
- Posts
- 1,235
- Vote Rating
- 4
Thanks, those lines should be the following:
This will be fixed in the next release.Code:if (field.getType().type == 'date' && Ext.isDate(rawData[name])) { data[name] = rawData[name].getTime(); } else { data[name] = rawData[name]; }
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-1620
in
2.0.


Reply With Quote
