Bug 41035: remove invalid path component 'item'
To test:
1. Create a record as a collection with leader 007 set to c
2. Add some items on the same branch to the bundle
3. Check one item in
4. Observe that you get a 404 error and the item is not removed from
the bundle
5. Apply the patch
6. Repeat step 3
7. Observe that the item is correctly removed (unlinked) from the
bundle
8. Sign off
Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 1b52f621dc)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
parent
3583b7919d
commit
d3de9ea135
|
|
@ -1735,7 +1735,7 @@
|
|||
var component_itemnumber = $(this).data('itemnumber');
|
||||
var host_itemnumber = $(this).data('hostnumber');
|
||||
var alert = $(this).closest('div');
|
||||
var unlink_item_url = "/api/v1/items/" + host_itemnumber + "/bundled_items/item/" + component_itemnumber;
|
||||
var unlink_item_url = "/api/v1/items/" + host_itemnumber + "/bundled_items/" + component_itemnumber;
|
||||
$.ajax({
|
||||
type: "DELETE",
|
||||
url: unlink_item_url,
|
||||
|
|
|
|||
Loading…
Reference in New Issue