WIP
authorKai Moritz <kai@juplo.de>
Tue, 21 Jan 2020 19:58:17 +0000 (20:58 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 7 Apr 2023 11:21:44 +0000 (13:21 +0200)
src/main/java/de/juplo/demo/DemoController.java

index 25b500b..a83a4b1 100644 (file)
@@ -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";
   }