Bugzilla – Attachment 43082 Details for
Bug 14518
Deleting records with a hold (and no item) does not work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 14518 - Allow deleting records with holds (and no item) after confirmation
PASSED-QA-Bug-14518---Allow-deleting-records-with-.patch (text/plain), 2.18 KB, created by
Katrin Fischer
on 2015-10-03 17:53:49 UTC
(
hide
)
Description:
[PASSED QA] Bug 14518 - Allow deleting records with holds (and no item) after confirmation
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2015-10-03 17:53:49 UTC
Size:
2.18 KB
patch
obsolete
>From 28361b2c87dd2b115251a233b6f33985b6418c15 Mon Sep 17 00:00:00 2001 >From: remi <remi.mayrand-provencher@inLibro.com> >Date: Wed, 20 May 2015 13:26:23 -0400 >Subject: [PATCH] [PASSED QA] Bug 14518 - Allow deleting records with holds > (and no item) after confirmation > >Cleaning up records with no item but holds is impossible since >the code does not consider the result from the confirmation popup. > >This situation happens to our client in their (annual) cleanup. > >I. Setup >Create the following if needed: >1) A patron for placing holds and checkouts >2) A test bibliographic record >3) An item for the record. Set the barcode to "DELETEME" > >II. Corrupting the Database >1) Checkout the item "DELETEME" >2) Place a record level hold on the test record (next available item) >3) Checkin the item "DELETEME" >4) MySQL: DELETE FROM items WHERE barcode="DELETEME"; > >III. Deleting the record. >1) On the test record's details page: Edit -> Delete record >2) Click 'yes' in the prompt >3) Nothing happens. > >IV. Fixing the bug >1) Apply the patch >2) Repeat step III to delete the record >3) Record is deleted > >Signed-off-by: Nick Clemens <nick@quecheelibrary.org> >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Note: It's not possible in Koha to place a hold on a >record with items, so the effect described here is more >likely to be the result of a migration issue or another >bug. But doesn't hurt to provide a way out :) >--- > koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc | 4 ---- > 1 file changed, 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >index ee39f31..8f44496 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >@@ -57,11 +57,7 @@ > is_confirmed = confirm(_("Are you sure you want to delete this record?")); > } > if (is_confirmed) { >- if ( count > 0 || holdcount > 0 ){ >- return false; >- } else { > window.location="/cgi-bin/koha/cataloguing/addbiblio.pl?op=delete&biblionumber=[% biblionumber %]"; >- } > } else { > return false; > } >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14518
:
40918
|
43079
| 43082