PDA

View Full Version : Possible issue with /DataReader update method



dve
21 Apr 2011, 6:13 AM
I am have the DataWriter writeAllFields = false, so it is only sending the modified fields back to the server. I in turn am returning only the modified fields back to the DataReader (this may include other fields affected by the save)

In the data reader update method

http://dev.sencha.com/deploy/dev/docs/source/DataReader.html#method-Ext.data.DataReader-update

Shouldnt the line ...


rs.data = Ext.apply(rs.data, data);


Actually be...


rs.data = Ext.applyIf(rs.data, data);


.. as all the existing data in my record is being wiped out