Index: lams_central/src/java/org/lamsfoundation/lams/web/qb/QbCollectionController.java
===================================================================
diff -u -r730a7378ea82a88512217331afdbd1f0f0346d61 -r3ac00c8cbf0ef8d92fb504727e16ca8f4e3e13c8
--- lams_central/src/java/org/lamsfoundation/lams/web/qb/QbCollectionController.java (.../QbCollectionController.java) (revision 730a7378ea82a88512217331afdbd1f0f0346d61)
+++ lams_central/src/java/org/lamsfoundation/lams/web/qb/QbCollectionController.java (.../QbCollectionController.java) (revision 3ac00c8cbf0ef8d92fb504727e16ca8f4e3e13c8)
@@ -170,15 +170,9 @@
}
}
- @RequestMapping("/addCollection")
- @ResponseBody
- public void removeCollectionQuestions(@RequestParam String name) {
- qbService.addCollection(getUserId(), name);
- }
-
@RequestMapping("/addCollectionQuestions")
@ResponseBody
- public void addllectionQuestions(@RequestParam long sourceCollectionUid, @RequestParam long targetCollectionUid,
+ public void addCollectionQuestions(@RequestParam long sourceCollectionUid, @RequestParam long targetCollectionUid,
@RequestParam boolean copy, @RequestParam String included, @RequestParam String excluded)
throws IOException {
if (StringUtils.isBlank(excluded)) {
@@ -196,6 +190,18 @@
}
}
+ @RequestMapping("/addCollection")
+ @ResponseBody
+ public void addCollection(@RequestParam String name) {
+ qbService.addCollection(getUserId(), name);
+ }
+
+ @RequestMapping("/removeCollection")
+ @ResponseBody
+ public void removeCollection(@RequestParam long collectionUid) {
+ qbService.removeCollection(collectionUid);
+ }
+
private Integer getUserId() {
HttpSession ss = SessionManager.getSession();
UserDTO user = (UserDTO) ss.getAttribute(AttributeNames.USER);
Index: lams_central/web/qb/collection.jsp
===================================================================
diff -u -r730a7378ea82a88512217331afdbd1f0f0346d61 -r3ac00c8cbf0ef8d92fb504727e16ca8f4e3e13c8
--- lams_central/web/qb/collection.jsp (.../collection.jsp) (revision 730a7378ea82a88512217331afdbd1f0f0346d61)
+++ lams_central/web/qb/collection.jsp (.../collection.jsp) (revision 3ac00c8cbf0ef8d92fb504727e16ca8f4e3e13c8)
@@ -11,7 +11,7 @@