Author: doll
Date: Fri Aug 29 15:15:21 2008
New Revision: 690409
URL: http://svn.apache.org/viewvc?rev=690409&view=rev
Log:
Fixed bug where the json rpc update app data request was not doing a partial
update.
Changed the delete app data rpc keys param to the correct fields param.
Modified:
incubator/shindig/trunk/features/opensocial-current/jsonrpccontainer.js
Modified:
incubator/shindig/trunk/features/opensocial-current/jsonrpccontainer.js
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/opensocial-current/jsonrpccontainer.js?rev=690409&r1=690408&r2=690409&view=diff
==============================================================================
--- incubator/shindig/trunk/features/opensocial-current/jsonrpccontainer.js
(original)
+++ incubator/shindig/trunk/features/opensocial-current/jsonrpccontainer.js Fri
Aug 29 15:15:21 2008
@@ -386,6 +386,7 @@
rpc.params.appId = "@app";
rpc.params.data = {};
rpc.params.data[key] = value;
+ rpc.params.fields = key;
return new JsonRpcRequestItem(rpc);
};
@@ -393,7 +394,7 @@
var rpc = { method : "appdata.delete" };
rpc.params = this.translateIdSpec(this.makeIdSpec(id));
rpc.params.appId = "@app";
- rpc.params.keys = keys;
+ rpc.params.fields = this.getFieldsList(keys);
return new JsonRpcRequestItem(rpc);
};