Hotfix für Problem Navigation PublicPersonalProfile

git-svn-id: https://svn.libreccm.org/ccm/trunk@1856 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2012-09-11 10:33:10 +00:00
parent 5f9e918271
commit 79d89bfe00
1 changed files with 7 additions and 2 deletions

View File

@ -176,16 +176,21 @@ public class PublicPersonalProfileXmlUtil {
}
final ContentItem targetItem = link.getTargetItem();
if (!(targetItem instanceof PublicPersonalProfile)
&& (targetItem instanceof ContentPage)) {
System.out.printf("targetItem.getClass.getName: %s\n", targetItem.getClass().getName());
if ((targetItem instanceof PublicPersonalProfile)
|| (targetItem instanceof ContentPage)) {
final ContentPage targetPage = (ContentPage) targetItem;
if (!(targetPage.getContentBundle().hasInstance(profile.getLanguage(),
false))) {
System.out.printf("No suitable language found. Continuing...\n");
continue;
}
System.out.printf("Creating navigation entry for %s\n", navLinkKey);
navLinks.add(createNavLink(navItem, navLinkKey, targetItem));
} else {
System.out.println("targetItem is not a PublicPersonalProfile and not a content item");
}
}