View Full Version : Possible bug, Ext.data.DataWriter.toHash idProperty not defaulting to 'id'.

16 Aug 2010, 4:28 AM
Line 36199 (Ext-all-debug-w-comm) version Ext JS Library 3.2.1.
data[this.meta.idProperty] = rec.id

Ext.data.DataWriter.toHash uses idProperty but that property according to the docs has a default value to id.
In the toHash method however there's no check if its defined, I don't know it that check should be done here or elsewhere but I do consider it a bug that it doesn't get the id string value as default.

I use a DirectStore, JsonWriter that returns the metaData in the response.
/ Axpa