Do not include Item either if case is true.

git-svn-id: http://scm.dspace.org/svn/repo/branches/dspace-1_5_x@2499 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Mark Diggory
2008-01-08 23:39:28 +00:00
parent 063dc1ffd7
commit 9a2b9a68ea

View File

@@ -196,8 +196,6 @@ public class LoginChooser extends AbstractDSpaceTransformer implements
final AuthenticationMethod authMethod = (AuthenticationMethod) authMethods
.next();
final Item item = list.addItem();
HttpServletRequest hreq = (HttpServletRequest) this.objectModel
.get(HttpEnvironment.HTTP_REQUEST_OBJECT);
@@ -225,6 +223,7 @@ public class LoginChooser extends AbstractDSpaceTransformer implements
loginURL = location.toString();
}
final Item item = list.addItem();
item.addXref(loginURL, message(authTitle));
}