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";
}