roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r544927 - /roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/StylesheetEdit.java
Date Wed, 06 Jun 2007 19:41:59 GMT
Author: agilliland
Date: Wed Jun  6 12:41:59 2007
New Revision: 544927

URL: http://svn.apache.org/viewvc?view=rev&rev=544927
Log:
fix bug where stylesheet editor shows warning about no custom stylesheet available when the
stylesheet action is being accessed for the first time on a given theme.  the bug was that
the custom stylesheet template needs to be created at that point but wasn't being properly
set so that it's available for the action execute() method.


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

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/StylesheetEdit.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/StylesheetEdit.java?view=diff&rev=544927&r1=544926&r2=544927
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/StylesheetEdit.java
(original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/StylesheetEdit.java
Wed Jun  6 12:41:59 2007
@@ -85,6 +85,8 @@
                     
                     mgr.savePage(stylesheet);
                     RollerFactory.getRoller().flush();
+                    
+                    setTemplate(stylesheet);
                 }
             } catch (WebloggerException ex) {
                 log.error("Error finding/adding stylesheet tempalate from weblog - "+getActionWeblog().getHandle(),
ex);



Mime
View raw message