roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r547920 - /roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/Templates.java
Date Sat, 16 Jun 2007 13:40:57 GMT
Author: snoopdave
Date: Sat Jun 16 06:40:56 2007
New Revision: 547920

URL: http://svn.apache.org/viewvc?view=rev&rev=547920
Log:
OpenJPA doesn't want you to modify collections returned by ORM

Modified:
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/Templates.java

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/Templates.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/Templates.java?view=diff&rev=547920&r1=547919&r2=547920
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/Templates.java
(original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/Templates.java
Sat Jun 16 06:40:56 2007
@@ -71,7 +71,9 @@
             UserManager mgr = RollerFactory.getRoller().getUserManager();
             
             // get current list of templates, minus custom stylesheet
-            List<WeblogTemplate> pages = mgr.getPages(getActionWeblog());
+            List<WeblogTemplate> raw = mgr.getPages(getActionWeblog()); 
+            List<WeblogTemplate> pages = new ArrayList<WeblogTemplate>();
+            pages.addAll(raw);
             if(getActionWeblog().getTheme().getStylesheet() != null) {
                 pages.remove(mgr.getPageByLink(getActionWeblog(), 
                         getActionWeblog().getTheme().getStylesheet().getLink()));



Mime
View raw message