You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Paul Lindner (JIRA)" <ji...@apache.org> on 2008/09/09 19:07:44 UTC
[jira] Commented: (SHINDIG-582) Handle UNDISCLOSED gender values
properly
[ https://issues.apache.org/jira/browse/SHINDIG-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629530#action_12629530 ]
Paul Lindner commented on SHINDIG-582:
--------------------------------------
new patch:
Index: features/opensocial-current/jsonrpccontainer.js
===================================================================
--- features/opensocial-current/jsonrpccontainer.js (revision 693195)
+++ features/opensocial-current/jsonrpccontainer.js (working copy)
@@ -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};
}
> Handle UNDISCLOSED gender values properly
> -----------------------------------------
>
> Key: SHINDIG-582
> URL: https://issues.apache.org/jira/browse/SHINDIG-582
> Project: Shindig
> Issue Type: Bug
> Components: Common Components (Java)
> Reporter: Paul Lindner
> Assignee: Paul Lindner
>
> It's possible for the canonical value of undisclosed to be associated with a gender. Current code in jsonrpccontainer.js maps this to FEMALE.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.