roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gma...@apache.org
Subject svn commit: r1624080 - /roller/trunk/app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/CategoryEdit.java
Date Wed, 10 Sep 2014 18:00:36 GMT
Author: gmazza
Date: Wed Sep 10 18:00:35 2014
New Revision: 1624080

URL: http://svn.apache.org/r1624080
Log:
Position newly created categories properly (at the end)

Modified:
    roller/trunk/app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/CategoryEdit.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=1624080&r1=1624079&r2=1624080&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
Wed Sep 10 18:00:35 2014
@@ -109,6 +109,7 @@ public class CategoryEdit extends UIActi
                 WeblogEntryManager wmgr = WebloggerFactory.getWeblogger().getWeblogEntryManager();
                 if (isAdd()) {
                     getActionWeblog().addCategory(category);
+                    category.calculatePosition();
                 }
                 wmgr.saveWeblogCategory(category);
                 WebloggerFactory.getWeblogger().flush();



Mime
View raw message