From 9ab0687e355889e4f7cd6c7809c83ab50c9fd1be Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Mon, 20 Sep 2010 09:44:03 +0200 Subject: [PATCH] fix bug in update method of sonia.rest --- scm-webapp/src/main/webapp/resources/js/sonia.rest.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scm-webapp/src/main/webapp/resources/js/sonia.rest.js b/scm-webapp/src/main/webapp/resources/js/sonia.rest.js index f0df2f5601..bd57eecc95 100644 --- a/scm-webapp/src/main/webapp/resources/js/sonia.rest.js +++ b/scm-webapp/src/main/webapp/resources/js/sonia.rest.js @@ -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 ){