minor fix
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/gcube-ckan-datacatalog@130337 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
98cdbaa6ce
commit
0e8851ce75
|
@ -295,13 +295,11 @@ public class UserUtil {
|
|||
|
||||
try{
|
||||
logger.debug("User in session is " + username);
|
||||
|
||||
List<CkanLicense> titlesLicenses = ckanUtils.getLicenses();
|
||||
List<String> titles = new ArrayList<String>();
|
||||
List<String> urls = new ArrayList<String>();
|
||||
for (CkanLicense license : titlesLicenses) {
|
||||
titles.add(license.getTitle());
|
||||
|
||||
String url = (license.getUrl() != null && !license.getUrl().isEmpty()) ? license.getUrl() : "";
|
||||
urls.add(url);
|
||||
}
|
||||
|
@ -309,7 +307,6 @@ public class UserUtil {
|
|||
|
||||
session.setAttribute(ckanLicensesKey, licensesBean);
|
||||
logger.info("List of licenses has been saved into session" + licensesBean);
|
||||
|
||||
}
|
||||
catch(Exception e){
|
||||
logger.error("Failed to preload licenses list", e);
|
||||
|
|
Loading…
Reference in New Issue