2006/unicorn/src/org/w3c/unicorn/action LanguageAction.java,1.23,1.24

Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/action
In directory hutz:/tmp/cvs-serv23495/src/org/w3c/unicorn/action

Modified Files:
	LanguageAction.java 
Log Message:
clears all messages before adding the "default language edit" error

Index: LanguageAction.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/action/LanguageAction.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- LanguageAction.java	20 Mar 2010 17:06:04 -0000	1.23
+++ LanguageAction.java	21 Mar 2010 21:12:17 -0000	1.24
@@ -104,6 +104,7 @@
 			}
 			if (Language.getUiLocales().contains(locale)) {
 				if (locale.equals(Language.getDefaultLocale())) {
+					messages.clear();
 					messages.add(new Message(Message.ERROR, "The language you are trying to edit is either the default language or is unknown. " +
 															"If it is the latter and you think we are wrong please make a request on <a href=\"mailto:public-qa-dev@w3.org\">our public mailing-list</a>."));
 					Templates.write("language.vm", velocityContext, writer);

Received on Sunday, 21 March 2010 21:12:20 UTC