Author: chris.laprun(a)jboss.com
Date: 2011-08-05 18:39:11 -0400 (Fri, 05 Aug 2011)
New Revision: 7003
Modified:
portal/branches/api/component/api-impl/src/main/java/org/gatein/portal/api/impl/content/ContentRegistryImpl.java
Log:
- GTNPORTAL-1989: make sure that the new ApplicationCategory has a display name otherwise
it will crash the application registry portlet.
Modified:
portal/branches/api/component/api-impl/src/main/java/org/gatein/portal/api/impl/content/ContentRegistryImpl.java
===================================================================
---
portal/branches/api/component/api-impl/src/main/java/org/gatein/portal/api/impl/content/ContentRegistryImpl.java 2011-08-05
22:13:09 UTC (rev 7002)
+++
portal/branches/api/component/api-impl/src/main/java/org/gatein/portal/api/impl/content/ContentRegistryImpl.java 2011-08-05
22:39:11 UTC (rev 7003)
@@ -155,6 +155,8 @@
{
applicationCategory = new ApplicationCategory();
applicationCategory.setName(name);
+ applicationCategory.setDisplayName(name);
+ applicationCategory.setDescription(name);
registryService.save(applicationCategory);
}
else
Show replies by date