Shinsuke Sugaya 10 years ago
parent
commit
e657d94b12

+ 3 - 2
src/main/java/org/codelibs/fess/action/admin/KeyMatchAction.java

@@ -280,13 +280,14 @@ public class KeyMatchAction extends FessAdminAction {
     @Token(save = false, validate = true)
     @Token(save = false, validate = true)
     @Execute(validator = true, input = "edit.jsp")
     @Execute(validator = true, input = "edit.jsp")
     public String update() {
     public String update() {
-        ComponentUtil.getKeyMatchHelper().update();
         try {
         try {
             final KeyMatch keyMatch = createKeyMatch();
             final KeyMatch keyMatch = createKeyMatch();
             keyMatchService.store(keyMatch);
             keyMatchService.store(keyMatch);
             SAStrutsUtil.addSessionMessage("success.crud_update_crud_table");
             SAStrutsUtil.addSessionMessage("success.crud_update_crud_table");
 
 
-            return displayList(true);
+            final String result = displayList(true);
+            ComponentUtil.getKeyMatchHelper().update();
+            return result;
         } catch (final ActionMessagesException e) {
         } catch (final ActionMessagesException e) {
             logger.error(e.getMessage(), e);
             logger.error(e.getMessage(), e);
             throw e;
             throw e;