fixed bug
This commit is contained in:
parent
dc8566939d
commit
d9a57200c7
|
@ -26,6 +26,7 @@ public class Utils {
|
||||||
String[] splits = urlContainingGroupId.split("=");
|
String[] splits = urlContainingGroupId.split("=");
|
||||||
long groupId = -1;
|
long groupId = -1;
|
||||||
try {
|
try {
|
||||||
|
toReturn.setFriendlyURL(urlContainingGroupId);
|
||||||
if (splits.length > 0) {
|
if (splits.length > 0) {
|
||||||
groupId = Long.parseLong(splits[1]);
|
groupId = Long.parseLong(splits[1]);
|
||||||
GroupManager gm = new LiferayGroupManager();
|
GroupManager gm = new LiferayGroupManager();
|
||||||
|
@ -39,7 +40,6 @@ public class Utils {
|
||||||
toReturn.setFriendlyURL(GCubePortalConstants.PREFIX_GROUP_URL +GroupLocalServiceUtil.getGroup(groupId).getFriendlyURL());
|
toReturn.setFriendlyURL(GCubePortalConstants.PREFIX_GROUP_URL +GroupLocalServiceUtil.getGroup(groupId).getFriendlyURL());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
toReturn.setFriendlyURL(urlContainingGroupId);
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
_log.error("Something is wrong in the url passed: " + urlContainingGroupId);
|
_log.error("Something is wrong in the url passed: " + urlContainingGroupId);
|
||||||
return toReturn;
|
return toReturn;
|
||||||
|
|
Loading…
Reference in New Issue