Bugzilla – Attachment 179713 Details for
Bug 31698
Add ability to move a hold to a new bibliographic record/item
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31698: Call _FixPriority on orginal biblio to clean-up priorty
Bug-31698-Call-FixPriority-on-orginal-biblio-to-cl.patch (text/plain), 1.16 KB, created by
Lucas Gass (lukeg)
on 2025-03-25 23:22:10 UTC
(
hide
)
Description:
Bug 31698: Call _FixPriority on orginal biblio to clean-up priorty
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-03-25 23:22:10 UTC
Size:
1.16 KB
patch
obsolete
>From d7580789e41c51c7099af1430d8daab30304e2c0 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 25 Mar 2025 23:18:57 +0000 >Subject: [PATCH] Bug 31698: Call _FixPriority on orginal biblio to clean-up > priorty > >--- > reserve/request.pl | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/reserve/request.pl b/reserve/request.pl >index 83134b0e304..43da56a2ec1 100755 >--- a/reserve/request.pl >+++ b/reserve/request.pl >@@ -126,6 +126,9 @@ if ( $op eq 'cud-move' ) { > { order_by => { -asc => 'priority' } } > )->as_list; > >+ #need to get the biblionumber of the original hold >+ my $original_biblionumber = $moving_holds[0]->biblionumber; >+ > #Get the highest current priority of the target biblio > my $highest_priority = Koha::Holds->search( > { biblionumber => $new_biblionumber }, >@@ -168,7 +171,8 @@ if ( $op eq 'cud-move' ) { > } > } > >- push @biblionumbers, $new_biblionumber; >+ C4::Reserves::_FixPriority( { biblionumber => $original_biblionumber } ); >+ push @biblionumbers, $original_biblionumber; > > $template->param( > hold_move_successes => \@success_messages, >-- >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 31698
:
179226
|
179235
|
179236
|
179279
|
179287
|
179290
|
179291
|
179292
|
179295
|
179704
|
179711
|
179713
|
181222
|
181223
|
181224
|
181225
|
181226
|
181228
|
181229
|
181230
|
181231
|
181232
|
181233
|
181234
|
181929
|
181930
|
181944
|
181945
|
181946
|
181947
|
181948
|
181951
|
181952
|
181953
|
181954
|
181955
|
181956
|
181957
|
181958
|
181959
|
181960
|
181961
|
181962
|
182639
|
182640
|
182641