[Koha-bugs] [Bug 32656] Script delete_records_via_leader.pl no longer deletes items

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 18 21:05:28 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32656

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #145364|0                           |1
        is obsolete|                            |

--- Comment #3 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 145407
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=145407&action=edit
BugĀ 32656: Script delete_records_via_leader.pl no longer deletes items

Bug 29788 inadvertantly replaced a call to safe_delete() with safe_to_delete()
such that any time the script should delete an item it only checks to see if
the item is delectable, after which deletion of the record fails because the
items were not deleted.

Test Plan:
1) Mark a record with items to be deleted via the record leader
2) Run delete_records_via_leader.pl -i -b -v
3) Note the script says it is deleting the items but then the record
   deletion fails. Note the items remain in the items table of the
   database.
4) Apply this patch
5) Repeat step 2
6) This time the items and record should be deleted!

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list