You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by li...@apache.org on 2008/09/09 19:58:37 UTC

svn commit: r693533 - /incubator/shindig/trunk/features/opensocial-current/jsonrpccontainer.js

Author: lindner
Date: Tue Sep  9 10:58:36 2008
New Revision: 693533

URL: http://svn.apache.org/viewvc?rev=693533&view=rev
Log:
SHINDIG-582 | Undisclosed gender was mapping to FEMALE

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=693533&r1=693532&r2=693533&view=diff
==============================================================================
--- incubator/shindig/trunk/features/opensocial-current/jsonrpccontainer.js (original)
+++ incubator/shindig/trunk/features/opensocial-current/jsonrpccontainer.js Tue Sep  9 10:58:36 2008
@@ -301,7 +301,9 @@
   }
 
   if (serverJson.gender) {
-    var key = serverJson.gender == 'male' ? 'MALE' : 'FEMALE';
+    var key = serverJson.gender == 'male' ? 'MALE' : 
+             (serverJson.gender == 'female') ? 'FEMALE' :
+             null;
     serverJson.gender = {key : key, displayValue : serverJson.gender};
   }