Koha/circ
Nick Clemens f1c2974d7b Bug 25969: Don't set itemnumber as reserve->itemnumber
When a hold is checked in at the wrong destination we revert the found status
For a title level hold this means we return it to a title level hold, with no itemnumber

When we checkin the item we find the hold, but won't set the itemnumber in the hold until it is confirmed

In the script we were setting the itemnumber param, but then setting it again using the reserve itemnumber.
In all conditions before the itemnumber has been set, we don't need to set it again, especially when we do
so incorrectly

To test:
- Log in at Library A
- Place hold on item at Library A, for pickup at Library A
- Check item in at Library A
- Click "Confirm hold"
- Set library to Library B
- Check item in again (try with both the box on reutrns.pl and the box in the header)
- Click "Confirm hold and transfer"
- get error: Can't call method "biblio" on an undefined value at /kohadevbox/koha/circ/returns.pl line 147
- apply patch
- repeat
- success!
- confirm trappings of holds works as normally otherwise too

Signed-off-by: Daniel Gaghan <daniel.gaghan@pueblolibrary.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-09-18 10:38:09 +02:00
..
add_message.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
article-request-slip.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
article-requests.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
bookcount.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
branchoverdues.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
branchtransfers.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
checkout-notes.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
circulation-home.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
circulation.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
del_message.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
hold-transfer-slip.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
offline-mf.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
offline.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
on-site_checkouts.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
overdue.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
pendingreserves.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
renew.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
request-article.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
reserveratios.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
returns.pl Bug 25969: Don't set itemnumber as reserve->itemnumber 2020-09-18 10:38:09 +02:00
set-library.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
transfer-slip.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
transferstoreceive.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
view_holdsqueue.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
waitingreserves.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
ypattrodue-attr-search-authvalue.pl
ysearch.pl Bug 15400: (follow-up) Restore 'years' string, remove untranslatable string 2020-06-29 12:37:02 +02:00