roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ghu...@apache.org
Subject svn commit: r1337934 - /roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/Templates.java
Date Sun, 13 May 2012 16:52:25 GMT
Author: ghuber
Date: Sun May 13 16:52:24 2012
New Revision: 1337934

URL: http://svn.apache.org/viewvc?rev=1337934&view=rev
Log:
Make sure correct value is maintained.

Modified:
    roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/Templates.java

Modified: roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/Templates.java
URL: http://svn.apache.org/viewvc/roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/Templates.java?rev=1337934&r1=1337933&r2=1337934&view=diff
==============================================================================
--- roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/Templates.java
(original)
+++ roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/Templates.java
Sun May 13 16:52:24 2012
@@ -106,7 +106,9 @@ public class Templates extends UIAction 
 			} else {
 				// Make sure we have an option for the default web page
 				availableActions.add(WeblogTemplate.ACTION_WEBLOG);
-				setNewTmplAction(WeblogTemplate.ACTION_WEBLOG);
+				if (StringUtils.isEmpty(getNewTmplAction())) {
+					setNewTmplAction(WeblogTemplate.ACTION_WEBLOG);
+				}
 				for (WeblogTemplate tmpPage : getTemplates()) {
 					if (WeblogTemplate.ACTION_WEBLOG
 							.equals(tmpPage.getAction())) {



Mime
View raw message