From 88ea3debf5ea966a081b17578591c43b8327f80a Mon Sep 17 00:00:00 2001 From: rma-rripken <89810919+rma-rripken@users.noreply.github.com> Date: Thu, 4 Jan 2024 22:05:21 -0800 Subject: [PATCH] Allow spaces in DeleteMethod lookup. --- cwms-data-api/src/main/java/cwms/cda/api/Controllers.java | 1 + 1 file changed, 1 insertion(+) diff --git a/cwms-data-api/src/main/java/cwms/cda/api/Controllers.java b/cwms-data-api/src/main/java/cwms/cda/api/Controllers.java index 226fea72c..3323341bf 100644 --- a/cwms-data-api/src/main/java/cwms/cda/api/Controllers.java +++ b/cwms-data-api/src/main/java/cwms/cda/api/Controllers.java @@ -251,6 +251,7 @@ public static JooqDao.DeleteMethod getDeleteMethod(String input) { JooqDao.DeleteMethod retval = null; if (input != null) { + input = input.replace(' ', '_'); retval = JooqDao.DeleteMethod.valueOf(input.toUpperCase()); } return retval;