Bugzilla – Attachment 73293 Details for
Bug 18789
Send a Koha::Patron object to the templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18789: (follow-up) Fix place hold page
Bug-18789-follow-up-Fix-place-hold-page.patch (text/plain), 1.39 KB, created by
Jonathan Druart
on 2018-03-26 19:59:27 UTC
(
hide
)
Description:
Bug 18789: (follow-up) Fix place hold page
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-03-26 19:59:27 UTC
Size:
1.39 KB
patch
obsolete
>From 2f1c581e95d3df4e3304e3fb38791403823750d7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 26 Mar 2018 16:55:51 -0300 >Subject: [PATCH] Bug 18789: (follow-up) Fix place hold page > >This patch fixes very weird behaviours introduced by > commit 0ab22e1c7c6b6e8d14a4fb7478ab2a3d42da347d > Bug 18789: Send Koha::Patron object to the templates > >The patron variable was only set when no action was defined. >This patch restores the feature the easiest way possible (less changes) >even if it is not the best one. >--- > reserve/request.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/reserve/request.pl b/reserve/request.pl >index f92b2ab86d..5ff0cb7d41 100755 >--- a/reserve/request.pl >+++ b/reserve/request.pl >@@ -181,6 +181,7 @@ if ($borrowernumber_hold && !$action) { > > my $amount_outstanding = $patron->account->balance; > $template->param( >+ patron => $patron, > expiry => $expiry, > diffbranch => $diffbranch, > messages => $messages, >@@ -635,7 +636,6 @@ if ( C4::Context->preference( 'AllowHoldDateInFuture' ) ) { > } > > $template->param( >- patron => $patron, > SuspendHoldsIntranet => C4::Context->preference('SuspendHoldsIntranet'), > AutoResumeSuspendedHolds => C4::Context->preference('AutoResumeSuspendedHolds'), > ); >-- >2.11.0
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 18789
:
64211
|
64212
|
64213
|
64214
|
64215
|
64216
|
64218
|
64219
|
64221
|
64229
|
71301
|
71302
|
71303
|
71304
|
71305
|
71306
|
71307
|
71308
|
71309
|
71310
|
71311
|
71485
|
71486
|
71487
|
71488
|
71489
|
71490
|
71491
|
71492
|
71493
|
71494
|
71495
|
71496
|
71679
|
71680
|
71681
|
71682
|
71683
|
71684
|
71685
|
71686
|
71687
|
71688
|
71689
|
71690
|
71691
|
71713
|
71714
|
71715
|
71716
|
71717
|
71718
|
71719
|
71720
|
71721
|
71722
|
71723
|
71724
|
71725
|
71726
|
71727
|
71728
|
71729
|
71730
|
71731
|
71732
|
71733
|
71734
|
71735
|
71736
|
71827
|
71838
|
71841
| 73293 |
73890
|
75237