Fix delete operation.

This commit is contained in:
Paulo Gustavo Veiga
2012-05-19 21:36:34 -03:00
parent 07056b95fe
commit b534fce00f
5 changed files with 51 additions and 97 deletions

View File

@@ -121,7 +121,7 @@ public class MindmapController extends BaseController {
@RequestMapping(method = RequestMethod.DELETE, value = "/maps/batch")
@ResponseStatus(value = HttpStatus.NO_CONTENT)
public void batchDelete(@RequestParam(required = false) String ids) throws IOException, WiseMappingException {
public void batchDelete(@RequestParam(required = true) String ids) throws IOException, WiseMappingException {
final User user = Utils.getUser();
final String[] mapsIds = ids.split(",");
for (final String mapId : mapsIds) {