From f7491645ea7c4356be8bb74a5400dc3a4e40c528 Mon Sep 17 00:00:00 2001 From: Shinsuke Sugaya Date: Thu, 29 Sep 2016 18:56:59 +0900 Subject: [PATCH] fix #713 modify an order of vaeifyToken --- .../app/web/admin/dict/kuromoji/AdminDictKuromojiAction.java | 2 +- .../fess/app/web/admin/dict/mapping/AdminDictMappingAction.java | 2 +- .../app/web/admin/dict/protwords/AdminDictProtwordsAction.java | 2 +- .../app/web/admin/dict/seunjeon/AdminDictSeunjeonAction.java | 2 +- .../fess/app/web/admin/dict/synonym/AdminDictSynonymAction.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/codelibs/fess/app/web/admin/dict/kuromoji/AdminDictKuromojiAction.java b/src/main/java/org/codelibs/fess/app/web/admin/dict/kuromoji/AdminDictKuromojiAction.java index 047637a894..fcdb715419 100644 --- a/src/main/java/org/codelibs/fess/app/web/admin/dict/kuromoji/AdminDictKuromojiAction.java +++ b/src/main/java/org/codelibs/fess/app/web/admin/dict/kuromoji/AdminDictKuromojiAction.java @@ -305,8 +305,8 @@ public HtmlResponse update(final EditForm form) { @Execute public HtmlResponse delete(final EditForm form) { verifyCrudMode(form.crudMode, CrudMode.DETAILS, form.dictId); - verifyToken(() -> asDetailsHtml()); validate(form, messages -> {}, () -> asDetailsHtml()); + verifyToken(() -> asDetailsHtml()); kuromojiService .getKuromojiItem(form.dictId, form.id) .ifPresent( diff --git a/src/main/java/org/codelibs/fess/app/web/admin/dict/mapping/AdminDictMappingAction.java b/src/main/java/org/codelibs/fess/app/web/admin/dict/mapping/AdminDictMappingAction.java index bf1964cc48..1c6315fdcf 100644 --- a/src/main/java/org/codelibs/fess/app/web/admin/dict/mapping/AdminDictMappingAction.java +++ b/src/main/java/org/codelibs/fess/app/web/admin/dict/mapping/AdminDictMappingAction.java @@ -309,8 +309,8 @@ public HtmlResponse update(final EditForm form) { @Execute public HtmlResponse delete(final EditForm form) { verifyCrudMode(form.crudMode, CrudMode.DETAILS, form.dictId); - verifyToken(() -> asDetailsHtml()); validate(form, messages -> {}, () -> asDetailsHtml()); + verifyToken(() -> asDetailsHtml()); charMappingService .getCharMappingItem(form.dictId, form.id) .ifPresent( diff --git a/src/main/java/org/codelibs/fess/app/web/admin/dict/protwords/AdminDictProtwordsAction.java b/src/main/java/org/codelibs/fess/app/web/admin/dict/protwords/AdminDictProtwordsAction.java index e6c4ae5da9..fc42f1c80c 100644 --- a/src/main/java/org/codelibs/fess/app/web/admin/dict/protwords/AdminDictProtwordsAction.java +++ b/src/main/java/org/codelibs/fess/app/web/admin/dict/protwords/AdminDictProtwordsAction.java @@ -290,8 +290,8 @@ public HtmlResponse update(final EditForm form) { @Execute public HtmlResponse delete(final EditForm form) { verifyCrudMode(form.crudMode, CrudMode.DETAILS, form.dictId); - verifyToken(() -> asDetailsHtml()); validate(form, messages -> {}, () -> asDetailsHtml()); + verifyToken(() -> asDetailsHtml()); protwordsService .getProtwordsItem(form.dictId, form.id) .ifPresent(entity -> { diff --git a/src/main/java/org/codelibs/fess/app/web/admin/dict/seunjeon/AdminDictSeunjeonAction.java b/src/main/java/org/codelibs/fess/app/web/admin/dict/seunjeon/AdminDictSeunjeonAction.java index de55220350..44631b252f 100644 --- a/src/main/java/org/codelibs/fess/app/web/admin/dict/seunjeon/AdminDictSeunjeonAction.java +++ b/src/main/java/org/codelibs/fess/app/web/admin/dict/seunjeon/AdminDictSeunjeonAction.java @@ -293,8 +293,8 @@ public HtmlResponse update(final EditForm form) { @Execute public HtmlResponse delete(final EditForm form) { verifyCrudMode(form.crudMode, CrudMode.DETAILS, form.dictId); - verifyToken(() -> asDetailsHtml()); validate(form, messages -> {}, () -> asDetailsHtml()); + verifyToken(() -> asDetailsHtml()); seunjeonService .getSeunjeonItem(form.dictId, form.id) .ifPresent(entity -> { diff --git a/src/main/java/org/codelibs/fess/app/web/admin/dict/synonym/AdminDictSynonymAction.java b/src/main/java/org/codelibs/fess/app/web/admin/dict/synonym/AdminDictSynonymAction.java index 20f42d4090..986ac8dd25 100644 --- a/src/main/java/org/codelibs/fess/app/web/admin/dict/synonym/AdminDictSynonymAction.java +++ b/src/main/java/org/codelibs/fess/app/web/admin/dict/synonym/AdminDictSynonymAction.java @@ -309,8 +309,8 @@ public HtmlResponse update(final EditForm form) { @Execute public HtmlResponse delete(final EditForm form) { verifyCrudMode(form.crudMode, CrudMode.DETAILS, form.dictId); - verifyToken(() -> asDetailsHtml()); validate(form, messages -> {}, () -> asDetailsHtml()); + verifyToken(() -> asDetailsHtml()); synonymService .getSynonymItem(form.dictId, form.id) .ifPresent(