Bugzilla – Attachment 47713 Details for
Bug 15629
Move the C4::Branch related code to Koha::Libraries - part 3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15629 [QA Followup]
Bug-15629-QA-Followup.patch (text/plain), 2.86 KB, created by
Kyle M Hall (khall)
on 2016-02-05 16:22:36 UTC
(
hide
)
Description:
Bug 15629 [QA Followup]
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-02-05 16:22:36 UTC
Size:
2.86 KB
patch
obsolete
>From d012f32eacbdd2edd505ba7a7e8eaf2738295275 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 5 Feb 2016 00:29:22 +0000 >Subject: [PATCH] Bug 15629 [QA Followup] > >* Use ->id instead of ->branchcode when possible to eliminate use of that nomenclature >* Fix bad use of ->branchcode to ->{branchcode} for unblessed hashref version of Koha::Library > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/Acquisition.pm | 2 +- > catalogue/search.pl | 2 +- > members/members-home.pl | 2 +- > opac/opac-search.pl | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm >index 512924b..4a83cb9 100644 >--- a/C4/Acquisition.pm >+++ b/C4/Acquisition.pm >@@ -2955,7 +2955,7 @@ sub NotifyOrderUsers { > my $letter = C4::Letters::GetPreparedLetter( > module => 'acquisition', > letter_code => 'ACQ_NOTIF_ON_RECEIV', >- branchcode => $library->branchcode, >+ branchcode => $library->{branchcode}, > tables => { > 'branches' => $library, > 'borrowers' => $borrower, >diff --git a/catalogue/search.pl b/catalogue/search.pl >index dbc12d2..fe5d45d 100755 >--- a/catalogue/search.pl >+++ b/catalogue/search.pl >@@ -425,7 +425,7 @@ my %is_nolimit = map { $_ => 1 } @nolimits; > if($params->{'multibranchlimit'}) { > my $library_category = Koha::LibraryCategories->find( $params->{multibranchlimit} ); > my @libraries = $library_category->libraries; >- my $multibranch = '('.join( " or ", map { 'branch: ' . $_->branchcode } @libraries ) .')'; >+ my $multibranch = '('.join( " or ", map { 'branch: ' . $_->id } @libraries ) .')'; > push @limits, $multibranch if ($multibranch ne '()'); > } > >diff --git a/members/members-home.pl b/members/members-home.pl >index f4e0cea..89b9793 100755 >--- a/members/members-home.pl >+++ b/members/members-home.pl >@@ -50,7 +50,7 @@ if ( C4::Branch::onlymine ) { > my $userenv = C4::Context->userenv; > my $library = Koha::Libraries->find( $userenv->{'branch'} ); > push @branchloop, { >- value => $library->branchcode, >+ value => $library->id, > branchcode => $library->branchcode, > branchname => $library->branchname, > selected => 1 >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index 4a865da..7120a51 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -482,7 +482,7 @@ if (@searchCategories > 0) { > if($params->{'multibranchlimit'}) { > my $library_category = Koha::LibraryCategories->find( $params->{multibranchlimit} ); > my @libraries = $library_category->libraries; >- my $multibranch = '('.join( " or ", map { 'branch: ' . $_->branchcode } @libraries ) .')'; >+ my $multibranch = '('.join( " or ", map { 'branch: ' . $_->id } @libraries ) .')'; > push @limits, $multibranch if ($multibranch ne '()'); > } > >-- >2.1.4
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 15629
:
46997
|
46998
|
46999
|
47000
|
47001
|
47002
|
47518
|
47519
|
47520
|
47521
|
47522
|
47523
|
47553
|
47701
|
47706
|
47707
|
47708
|
47709
|
47710
|
47711
|
47712
| 47713