[Koha-bugs] [Bug 14504] Add command-line script to batch delete items based on lost/ withdrawn statuses
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jul 8 15:39:21 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14504
Tomás Cohen Arazi <tomascohen at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Needs Signoff |Failed QA
CC| |tomascohen at gmail.com
--- Comment #43 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
I've tested this patches and found some issues:
* Somehow, it is not deleting items:
I ran this:
kohadev-koha at kohadevbox:/home/vagrant/kohaclone$ misc/cronjobs/delete_items.pl
--verbose --criteria 'holdingbranch="MPL"' --commit
Where statement: where holdingbranch="MPL"
Deleting '41'
But the item is still there. I'm not sure why :-D
MariaDB [koha_kohadev]> SELECT itemnumber,holdingbranch,homebranch FROM items
WHERE itemnumber=41;
+------------+---------------+------------+
| itemnumber | holdingbranch | homebranch |
+------------+---------------+------------+
| 41 | MPL | CPL |
+------------+---------------+------------+
1 row in set (0.00 sec)
* t/db_dependent/Items_DelItemCheck.t was missing the transaction, thus leaving
cruft on the db (FIXED WITH A FOLLOWUP). This happened at some point when
refactoring.
* This is an opinionated item, and could be discussed, but I'd rather stick
with --where instead of --criteria. I'd sign it if it was left as-is anyway.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list