Main Koha release repository https://koha-community.org
Find a file
Tomas Cohen Arazi 0e8f28b942
Bug 32529: Make Koha::Item->safe_to_delete consider 'P' holds as found
Currently, the Koha::Item->safe_to_delete method checks (among other things) if there are existing waiting or in-transit holds.

It seems that 'In processing' should block item deletion as well.

This patch implements that.

To test:
1. Apply up to the regression tests
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Item.t
=> FAIL: Boo! Tests fail!
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-01-05 09:21:15 -03:00
acqui Bug 32457: Fix CGI vulnerability in addorder.pl 2022-12-14 15:07:09 -03:00
admin Bug 32348: Add library public in columns settings 2022-12-23 14:02:30 -03:00
api Bug 31160: Required fields in patron api 2022-12-13 08:44:35 -03:00
authorities Bug 30250: Use ApplyFrameworkDefaults when importing a record 2022-11-09 14:03:22 -03:00
basket
bin
C4 Bug 32456: Preserve date accessioned if a date is not explicitly passed 2022-12-27 10:47:05 -03:00
catalogue Bug 31543: Use query string, rather than query, to build link 2022-11-16 15:57:28 -03:00
cataloguing Bug 24606: (QA follow-up) Remove duplicate include 2022-11-11 15:47:36 -03:00
circ Bug 30963: Automatically refresh the curbside pickups list 2022-12-01 09:34:48 -03:00
clubs
course_reserves
debian Bug 31675: Remove packages from debian/control that are no longer used 2022-12-07 14:20:54 -03:00
docs 22.11.00: Update history.txt 2022-11-25 15:20:02 -03:00
erm
errors
etc
ill
installer Bug 32330: DBRev 22.12.00.001 2022-12-19 10:17:26 -03:00
Koha Bug 32529: Make Koha::Item->safe_to_delete consider 'P' holds as found 2023-01-05 09:21:15 -03:00
koha-tmpl Bug 32445: Deal with biblio course reserve 2023-01-05 09:09:48 -03:00
labels
lib/CGI/Session/Serialize
members
misc Translation updates for Koha 22.11.00 2022-11-25 15:20:05 -03:00
offline_circ
opac Bug 32445: (follow-up) Fix availability display on opac-course-details 2023-01-05 09:09:48 -03:00
patron_lists
patroncards
plugins
pos
recalls
reports
reserve
reviews
rotating_collections
serials
services
skel
suggestion
svc
t Bug 32529: Regression tests 2023-01-05 09:21:15 -03:00
tags
tmp/modified_authorities
tools Bug 31711: (bug 27421 follow-up) Fix add to basket from a new file 2022-11-15 18:44:30 -03:00
virtualshelves
xt Bug 32352: Make xt/check_makefile.t check directories in git index 2022-11-28 15:37:14 -03:00
.editorconfig
.eslintrc.json
.gitignore
.htaccess
.mailmap 22.11.00: Update .mailmap 2022-11-25 15:20:01 -03:00
.perlcriticrc
.proverc.dist
.stylelintrc.json
about.pl Bug 30808: Add support for version codenames 2022-11-25 15:20:00 -03:00
app.psgi
changelanguage.pl
cpanfile
cypress.json
fix-perl-path.PL
gulpfile.js Bug 32422: Hardcoded paths in _common.scss precent using external node_modules 2022-12-12 12:19:10 -03:00
help.pl
INSTALL
Koha.pm Bug 32330: DBRev 22.12.00.001 2022-12-19 10:17:26 -03:00
koha_perl_deps.pl
kohaversion.pl
LICENSE
mainpage.pl
Makefile.PL
MANIFEST.SKIP
package.json Bug 32212: (bug 32030 follow-up) Restore bootstrap 4 2022-11-17 14:49:07 -03:00
README
README.md
README.robots
rewrite-config.PL
tsconfig.json
webpack.config.js
yarn.lock Bug 32212: Updated yarn.lock 2022-11-18 12:04:29 -03:00

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo