Bugzilla – Attachment 190608 Details for
Bug 41475
500 error when placing a hold on records with multiple 773 entries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41475: Make hostitemnumbers an array ref
Bug-41475-Make-hostitemnumbers-an-array-ref.patch (text/plain), 1.37 KB, created by
Lucas Gass (lukeg)
on 2025-12-17 22:52:27 UTC
(
hide
)
Description:
Bug 41475: Make hostitemnumbers an array ref
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-12-17 22:52:27 UTC
Size:
1.37 KB
patch
obsolete
>From ab5da661d4a895b914e506dd4213ec7508db5b4c Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Wed, 17 Dec 2025 22:50:51 +0000 >Subject: [PATCH] Bug 41475: Make hostitemnumbers an array ref > >To test: > >1. Set 'EasyAnalyticalRecords' to 'Show'. >2. Find or create a parent record that has at least 2 items on it. Note the itemnumbers and the framework. >3. Edit that framework so you can add a 773$0, 773$9, and 773$t >4. Find or create a child record. >5. Make at least 2 773 entries on the child record. Add the biblionumber of the host record to the 773$0. >6. In each entry for the 773$9 add one of the itemnumbers from the host record. >7. For the 773$t and the biblio title of the host record. >8. Save. >9. Now attempt to put a hold on the child record. >10. 500 error: >11. APPLY PATCH and restart_all >12. Try placing the hold again, this time it succeeds. >--- > C4/Reserves.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Reserves.pm b/C4/Reserves.pm >index 624cf08444d..2097ced1e1d 100644 >--- a/C4/Reserves.pm >+++ b/C4/Reserves.pm >@@ -428,7 +428,7 @@ sub CanBookBeReserved { > { > -or => [ > biblionumber => $biblionumber, >- itemnumber => { -in => @hostitemnumbers } >+ itemnumber => { -in => \@hostitemnumbers } > ] > } > ); >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41475
: 190608