roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gma...@apache.org
Subject svn commit: r1623597 - in /roller/trunk/app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor: CategoryEdit.java CategoryRemove.java
Date Mon, 08 Sep 2014 23:55:10 GMT
Author: gmazza
Date: Mon Sep  8 23:55:10 2014
New Revision: 1623597

URL: http://svn.apache.org/r1623597
Log:
ROL-2054 Newly saved categories not appearing on blog.

Modified:
    roller/trunk/app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/CategoryEdit.java
    roller/trunk/app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/CategoryRemove.java

Modified: roller/trunk/app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/CategoryEdit.java
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/CategoryEdit.java?rev=1623597&r1=1623596&r2=1623597&view=diff
==============================================================================
--- roller/trunk/app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/CategoryEdit.java
(original)
+++ roller/trunk/app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/CategoryEdit.java
Mon Sep  8 23:55:10 2014
@@ -107,11 +107,14 @@ public class CategoryEdit extends UIActi
 
                 // save changes
                 WeblogEntryManager wmgr = WebloggerFactory.getWeblogger().getWeblogEntryManager();
+                if (isAdd()) {
+                    getActionWeblog().addCategory(category);
+                }
                 wmgr.saveWeblogCategory(category);
                 WebloggerFactory.getWeblogger().flush();
 
                 // notify caches
-                CacheManager.invalidate(category);
+                CacheManager.invalidate(getActionWeblog());
 
                 addMessage(isAdd()? "categoryForm.created"
                         : "categoryForm.changesSaved",

Modified: roller/trunk/app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/CategoryRemove.java
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/CategoryRemove.java?rev=1623597&r1=1623596&r2=1623597&view=diff
==============================================================================
--- roller/trunk/app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/CategoryRemove.java
(original)
+++ roller/trunk/app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/CategoryRemove.java
Mon Sep  8 23:55:10 2014
@@ -114,7 +114,6 @@ public class CategoryRemove extends UIAc
                 }
 
                 // notify cache
-                String id = getCategory().getId();
                 CacheManager.invalidate(getCategory());
 
                 wmgr.removeWeblogCategory(getCategory());



Mime
View raw message