You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by sn...@apache.org on 2006/05/12 21:22:42 UTC

svn commit: r405844 - in /incubator/roller/trunk/src/org/apache/roller/presentation/website: actions/WebsiteFormAction.java formbeans/WebsiteFormEx.java

Author: snoopdave
Date: Fri May 12 12:22:30 2006
New Revision: 405844

URL: http://svn.apache.org/viewcvs?rev=405844&view=rev
Log:
Apply defaults checkbox should not be sticky

Modified:
    incubator/roller/trunk/src/org/apache/roller/presentation/website/actions/WebsiteFormAction.java
    incubator/roller/trunk/src/org/apache/roller/presentation/website/formbeans/WebsiteFormEx.java

Modified: incubator/roller/trunk/src/org/apache/roller/presentation/website/actions/WebsiteFormAction.java
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/src/org/apache/roller/presentation/website/actions/WebsiteFormAction.java?rev=405844&r1=405843&r2=405844&view=diff
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/presentation/website/actions/WebsiteFormAction.java (original)
+++ incubator/roller/trunk/src/org/apache/roller/presentation/website/actions/WebsiteFormAction.java Fri May 12 12:22:30 2006
@@ -177,7 +177,7 @@
                     umgr.saveWebsite(wd);  
                     
                     // ROL-1050: apply comment defaults to existing entries
-                    if (form.isApplyCommentDefaults()) {
+                    if (form.getApplyCommentDefaults()) {
                         wmgr.applyCommentDefaultsToEntries(wd);
                     }
 

Modified: incubator/roller/trunk/src/org/apache/roller/presentation/website/formbeans/WebsiteFormEx.java
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/src/org/apache/roller/presentation/website/formbeans/WebsiteFormEx.java?rev=405844&r1=405843&r2=405844&view=diff
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/presentation/website/formbeans/WebsiteFormEx.java (original)
+++ incubator/roller/trunk/src/org/apache/roller/presentation/website/formbeans/WebsiteFormEx.java Fri May 12 12:22:30 2006
@@ -82,7 +82,7 @@
         defaultPluginsArray = strings;
     }
     
-    public Boolean isApplyCommentDefaults() {
+    public Boolean getApplyCommentDefaults() {
         return applyCommentDefaults;
     }
     
@@ -183,6 +183,7 @@
             javax.servlet.ServletRequest request) {
         doReset(mapping, request);
         defaultPluginsArray = new String[0];
+        applyCommentDefaults = false;
     }
     
     public void reset(
@@ -190,6 +191,7 @@
             javax.servlet.http.HttpServletRequest request) {
         doReset(mapping, request);
         defaultPluginsArray = new String[0];
+        applyCommentDefaults = false;
     }
     
 }