fix bug in update method of sonia.rest

This commit is contained in:
Sebastian Sdorra
2010-09-20 09:44:03 +02:00
parent ac1a9140f6
commit 9ab0687e35

View File

@@ -210,9 +210,10 @@ Sonia.rest.Grid = Ext.extend(Ext.grid.GridPanel, {
submit: {
fn: function(item){
item = Ext.apply(data, item);
var store = this.store;
var id = data[this.idField];
item[this.idField] = id;
var url = String.format(this.restEditUrlPattern, id);
if ( debug ){