From 4914c81b382579db7f55a53f2f68c916ceb64a84 Mon Sep 17 00:00:00 2001 From: Tomas Bjerre Date: Tue, 18 Aug 2015 20:58:58 +0200 Subject: [PATCH] Validating only buttons as buttons * Was validating also visibility config as button. --- src/main/java/se/bjurr/prnfs/admin/ConfigResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/se/bjurr/prnfs/admin/ConfigResource.java b/src/main/java/se/bjurr/prnfs/admin/ConfigResource.java index 1a9ec6f..53567de 100644 --- a/src/main/java/se/bjurr/prnfs/admin/ConfigResource.java +++ b/src/main/java/se/bjurr/prnfs/admin/ConfigResource.java @@ -144,7 +144,7 @@ public Response post(final AdminFormValues config, @Context HttpServletRequest r // Assuming TRIGGER_CONFIG_FORM here if field not available, to be backwards // compatible getPrnfsNotification(config); - } else { + } else if (isOfType(config, AdminFormValues.FORM_TYPE.BUTTON_CONFIG_FORM)) { getPrnfsButton(config); } } catch (final ValidationException e) {