From 5463f9b62faeca66b2bf5c0b5fec45f4e8222350 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 21 Jan 2020 20:58:17 +0100 Subject: [PATCH] WIP --- src/main/java/de/juplo/demo/DemoController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/juplo/demo/DemoController.java b/src/main/java/de/juplo/demo/DemoController.java index 25b500b..a83a4b1 100644 --- a/src/main/java/de/juplo/demo/DemoController.java +++ b/src/main/java/de/juplo/demo/DemoController.java @@ -56,11 +56,11 @@ public class DemoController return "form"; } - @RequestMapping(path = "/", params = "add=row") - public String addRow(@ModelAttribute Form form, @RequestParam Integer card) + @RequestMapping(path = "/", params = "add!=card") + public String addRow(@ModelAttribute Form form, @RequestParam Integer add) { - LOG.info("Adding row {} to card #{}", form.row.get(card), card); - form.cards.get(card).put(form.row.get(card), Boolean.FALSE); + LOG.info("Adding row {} to card #{}", form.row.get(add), add); + form.cards.get(add).put(form.row.get(add), Boolean.FALSE); return "form"; } -- 2.20.1