Commit 642fceb4 authored by Matija Obreza's avatar Matija Obreza
Browse files

Merge branch '261-rebuild-button-leads-to-the-404-error'

parents 627a035f e4cf8848
......@@ -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