Bug 15711: Follow up batch_id not used
authorMark Tompsett <mtompset@hotmail.com>
Fri, 2 Dec 2016 19:37:07 +0000 (19:37 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Wed, 28 Dec 2016 13:37:22 +0000 (13:37 +0000)
Changed batch_id to image_id in the template, as the multiparam
would catch the array case.

TEST PLAN
---------
1) attempt to delete a selected item, but get a warning.
2) apply this follow up
3) attempt to delete a selected item, it deletes.
4) run koha qa test tools

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt

index f3e8430..398666b 100644 (file)
@@ -32,7 +32,7 @@
                     return {images:images, image_ids:image_ids};
                 }
                 else if (document.delete_images.action.checked){
-                        return {images:"batch_id="+document.delete_images.action.value, image_ids:document.delete_images.action.value};
+                        return {images:"image_id="+document.delete_images.action.value, image_ids:document.delete_images.action.value};
                 }
                 return (-1);
             }