Commit 9ba735bd authored by Maxym Borodenko's avatar Maxym Borodenko

Common database for Saved lists of accessions

parent dfe3ac01
......@@ -309,11 +309,7 @@ public class SelectionController extends BaseController {
if (title.equals("")) {
throw new RuntimeException("AccessionList title can not be empty string.");
}
if (accessionListService.getUUIDByTitle(title) == null) {
return saveOrUpdateList(title.trim(), description, shared, redirectAttrs, accessionList);
} else {
throw new RuntimeException("AccessionList title '" + title + "' is already in use.");
}
return saveOrUpdateList(title.trim(), description, shared, redirectAttrs, accessionList);
}
@RequestMapping(value = "/userList", params = { "update", "uuid" }, method = RequestMethod.POST)
......
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