Bugzilla – Attachment 46665 Details for
Bug 15568
Circ rules are not displayed anymore
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15568 (Follow up)
Bug-15568-Follow-up.patch (text/plain), 1.13 KB, created by
Nick Clemens (kidclamp)
on 2016-01-14 17:33:24 UTC
(
hide
)
Description:
Bug 15568 (Follow up)
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2016-01-14 17:33:24 UTC
Size:
1.13 KB
patch
obsolete
>From 333c7a26691524e0cb71a4fc28193eca2377b774 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 14 Jan 2016 17:30:42 +0000 >Subject: [PATCH] Bug 15568 (Follow up) > >Replace call to C4::Branches::GetBranchesCount with >Koha::Libraries->search->count >--- > admin/smart-rules.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl >index c92473c..9fd4118 100755 >--- a/admin/smart-rules.pl >+++ b/admin/smart-rules.pl >@@ -30,6 +30,7 @@ use Koha::DateUtils; > use Koha::Database; > use Koha::IssuingRule; > use Koha::IssuingRules; >+use Koha::Libraries; > > my $input = CGI->new; > my $dbh = C4::Context->dbh; >@@ -50,7 +51,7 @@ my $type=$input->param('type'); > my $branch = $input->param('branch'); > unless ( $branch ) { > if ( C4::Context->preference('DefaultToLoggedInLibraryCircRules') ) { >- $branch = GetBranchesCount() == 1 ? undef : C4::Branch::mybranch(); >+ $branch = Koha::Libraries->search->count == 1 ? undef : C4::Branch::mybranch(); > } > else { > $branch = C4::Branch::onlymine() ? ( C4::Branch::mybranch() || '*' ) : '*'; >-- >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 15568
:
46593
|
46661
|
46662
|
46664
|
46665
|
46679
|
46685
|
46697
|
46827