This patch updates the delete_items script to use Koha::Items->search instead of a direct database query.
Using a --where option that refers to the items table by name such as:
./misc/cronjobs/delete_items.pl --where "items.withdrawn = 0"
will no longer work and result in an error:
execute failed: Unknown column 'items.withdrawn' in 'where clause'
Use the --where option without naming the items table instead:
./misc/cronjobs/delete_items.pl --where "withdrawn = 0"
|