Skip to content

Commit

Permalink
Fixed a bug about the missing eIdentifier attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarco76 committed Sep 22, 2014
1 parent cb900cf commit 8f4bd42
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public void processAction(ActionMapping mapping, ActionForm form, PortletConfig
for (String attrMap : storkUserMapping.keySet()) {
PersonalAttribute attr = new PersonalAttribute();
attr.setName(storkUserMapping.get(attrMap));
if (attrMap.equals(storkMandatoryAttr) || storkUserMapping.get(attrMap).equals("eIdentifier")) {
if (attrMap.equals(storkMandatoryAttr) && storkUserMapping.get(attrMap).equals("eIdentifier")) {
attr.setIsRequired(true);
eIdentifier=true;
_log.debug("Attribute " + attrMap + " mapped in " + storkUserMapping.get(attrMap) + " is required");
Expand All @@ -332,13 +332,8 @@ public void processAction(ActionMapping mapping, ActionForm form, PortletConfig
attr.setIsRequired(true);
_log.debug("Attribute " + attrMap + " mapped in " + storkUserMapping.get(attrMap) + " is required");
} else {
if (attrMap.equals(storkMandatoryAttr)) {
attr.setIsRequired(true);
_log.debug("Attribute " + attrMap + " mapped in " + storkUserMapping.get(attrMap) + " is required");
} else {
attr.setIsRequired(false);
_log.debug("Attribute " + attrMap + " mapped in " + storkUserMapping.get(attrMap) + " is not required");
}
attr.setIsRequired(false);
_log.debug("Attribute " + attrMap + " mapped in " + storkUserMapping.get(attrMap) + " is not required");

}
}
Expand Down

0 comments on commit 8f4bd42

Please sign in to comment.