Commit e4cf8848 authored by Alexander Prendetskiy's avatar Alexander Prendetskiy
Browse files

"Rebuild" button leads to the 404 error

parent f86dbfa7
......@@ -141,6 +141,12 @@ public class CropController extends BaseController {
return "/crop/index";
}
@RequestMapping(value = "/rebuild", method = RequestMethod.POST)
public String rebuild() {
cropService.rebuildTaxonomies();
return "redirect:/";
}
private AppliedFilters cropFilter(Crop crop) {
AppliedFilters appliedFilters = new AppliedFilters();
appliedFilters.add(new AppliedFilter().setFilterName(FilterConstants.CROPS).addFilterValue(new FilterHandler.LiteralValueFilter(crop.getShortName())));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment