Author: chabotc
Date: Mon Jun 16 21:54:50 2008
New Revision: 668394

URL: http://svn.apache.org/viewvc?rev=668394&view=rev
Log:
Without the opts param, the gender field isn't requested, so the gadget crashes 
on a Person.Field.GENDER == undefined error.. this went unnoticed on the java 
side since it always returned all fields, but the php sample container & 
implementations do honor the fields param, leading to the expected javascript 
error :)

Modified:
    
incubator/shindig/trunk/javascript/samplecontainer/examples/SocialHelloWorld.xml

Modified: 
incubator/shindig/trunk/javascript/samplecontainer/examples/SocialHelloWorld.xml
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/javascript/samplecontainer/examples/SocialHelloWorld.xml?rev=668394&r1=668393&r2=668394&view=diff
==============================================================================
--- 
incubator/shindig/trunk/javascript/samplecontainer/examples/SocialHelloWorld.xml
 (original)
+++ 
incubator/shindig/trunk/javascript/samplecontainer/examples/SocialHelloWorld.xml
 Mon Jun 16 21:54:50 2008
@@ -120,7 +120,7 @@
 
      function initData() {
        var req = opensocial.newDataRequest();
-       req.add(req.newFetchPersonRequest('VIEWER'), 'viewer');
+       req.add(req.newFetchPersonRequest('VIEWER', opts), 'viewer');
        req.add(req.newFetchPeopleRequest('VIEWER_FRIENDS', opts), 
'viewerFriends');
        req.add(req.newFetchPersonAppDataRequest('VIEWER', 'count'), 
'viewerData');
        req.add(req.newFetchPersonAppDataRequest('VIEWER_FRIENDS', 'count'), 
'viewerFriendData');


Reply via email to