#21 -- Fix redirect and remove
This commit is contained in:
parent
07fcbce47b
commit
e7ef4099fa
@ -36,12 +36,12 @@ public class ReportPeriodController {
|
||||
@PostMapping(value = "saveReportPeriod", params = "save")
|
||||
public String saveReportPeriods(ReportPeriod reportPeriod) {
|
||||
reportPeriodService.save(reportPeriod);
|
||||
return "redirect: admin/reportPeriodList";
|
||||
return "redirect:/admin/reportPeriodList";
|
||||
}
|
||||
|
||||
@PostMapping(value = "saveReportPeriod", params = "delete")
|
||||
public String delete(ReportPeriod reportPeriod) {
|
||||
reportPeriodService.save(reportPeriod);
|
||||
return "redirect: admin/reportPeriodList";
|
||||
reportPeriodService.delete(reportPeriod);
|
||||
return "redirect:/admin/reportPeriodList";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user