Bugzilla – Attachment 38346 Details for
Bug 11747
Default to logged in library for Overdue notice/status triggers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11747 [QA Followup] - Use system preference
Bug-11747-QA-Followup---Use-system-preference.patch (text/plain), 1.31 KB, created by
Kyle M Hall (khall)
on 2015-04-22 15:22:51 UTC
(
hide
)
Description:
Bug 11747 [QA Followup] - Use system preference
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-04-22 15:22:51 UTC
Size:
1.31 KB
patch
obsolete
>From 890a3ed43f29d11802190e96d3c1b738cdd37d17 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 22 Apr 2015 11:21:53 -0400 >Subject: [PATCH] Bug 11747 [QA Followup] - Use system preference > >--- > tools/overduerules.pl | 12 +++++++----- > 1 files changed, 7 insertions(+), 5 deletions(-) > >diff --git a/tools/overduerules.pl b/tools/overduerules.pl >index b844a9a..c745861 100755 >--- a/tools/overduerules.pl >+++ b/tools/overduerules.pl >@@ -72,12 +72,14 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( > > my $type = $input->param('type'); > >-my $branch = >- defined( $input->param('branch') ) ? $input->param('branch') >- : GetBranchesCount() == 1 ? undef >- : C4::Branch::mybranch(); >-$branch = q{} if $branch eq 'NO_LIBRARY_SET'; >+my $branch = $input->param('branch'); >+$branch = >+ defined $branch ? $branch >+ : C4::Context->preference('DefaultToLoggedInLibraryOverdueTriggers') ? C4::Branch::mybranch() >+ : GetBranchesCount() == 1 ? undef >+ : undef; > $branch ||= q{}; >+$branch = q{} if $branch eq 'NO_LIBRARY_SET'; > > my $op = $input->param('op'); > $op ||= q{}; >-- >1.7.2.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 11747
:
25205
|
25297
|
25347
|
25842
|
35466
|
35467
|
35468
|
38112
|
38279
|
38280
|
38281
|
38346
|
43499
|
43500
|
43501