Bugzilla – Attachment 127253 Details for
Bug 27360
Libraries should be able to pick which branches display on the public 'Libraries' page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27360: Prevent crash if branchcode does not exist
Bug-27360-Prevent-crash-if-branchcode-does-not-exi.patch (text/plain), 807 bytes, created by
Jonathan Druart
on 2021-11-03 13:39:34 UTC
(
hide
)
Description:
Bug 27360: Prevent crash if branchcode does not exist
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-11-03 13:39:34 UTC
Size:
807 bytes
patch
obsolete
>From 80f25c5e400925b7217ed68bc313c250de8647b5 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 3 Nov 2021 14:39:17 +0100 >Subject: [PATCH] Bug 27360: Prevent crash if branchcode does not exist > >--- > opac/opac-library.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/opac/opac-library.pl b/opac/opac-library.pl >index 21e4142f6bc..fda19562784 100755 >--- a/opac/opac-library.pl >+++ b/opac/opac-library.pl >@@ -40,7 +40,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( > my $found; > if ($branchcode) { > my $library = Koha::Libraries->find($branchcode); >- if ( $library->public ) { >+ if ( $library && $library->public ) { > $found++; > $template->param( library => $library ); > } >-- >2.25.1
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 27360
:
126997
|
126998
|
126999
|
127000
|
127007
|
127008
|
127009
|
127011
|
127012
|
127013
|
127144
|
127145
|
127146
|
127147
|
127158
|
127159
|
127160
|
127161
|
127162
|
127163
| 127253 |
127629