Bugzilla – Attachment 25205 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 - Default to logged in library for Overdue notice/status triggers
Bug-11747---Default-to-logged-in-library-for-Overd.patch (text/plain), 2.04 KB, created by
Kyle M Hall (khall)
on 2014-02-12 13:07:05 UTC
(
hide
)
Description:
Bug 11747 - Default to logged in library for Overdue notice/status triggers
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2014-02-12 13:07:05 UTC
Size:
2.04 KB
patch
obsolete
>From b82fe08dab6a996550e440ee4558e6820446f1d9 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 12 Feb 2014 08:00:14 -0500 >Subject: [PATCH] Bug 11747 - Default to logged in library for Overdue notice/status triggers > >This patch makes the default circ rules and notices/slips to edit >the logged in branch, if one is set. > >Test Plan: >1) Apply this patch >2) Log into staff side, and set your library >3) Browse to Tools/Overdue notice/status triggers >4) Note the actions displayed are for your library >5) Select "All libraries" >6) Note the actions displayed are for "All libraries" >--- > tools/overduerules.pl | 27 +++++++++++++++++---------- > 1 files changed, 17 insertions(+), 10 deletions(-) > >diff --git a/tools/overduerules.pl b/tools/overduerules.pl >index cc90d0b..b11c4d7 100755 >--- a/tools/overduerules.pl >+++ b/tools/overduerules.pl >@@ -58,20 +58,27 @@ sub blank_row { > return 1; > } > >-my $type=$input->param('type'); >-my $branch = $input->param('branch'); >+my ( $template, $loggedinuser, $cookie ) = get_template_and_user( >+ { >+ template_name => "tools/overduerules.tmpl", >+ query => $input, >+ type => "intranet", >+ authnotrequired => 0, >+ flagsrequired => { tools => 'edit_notice_status_triggers' }, >+ debug => 1, >+ } >+); >+ >+my $type = $input->param('type'); >+my $branch = >+ defined( $input->param('branch') ) >+ ? $input->param('branch') >+ : C4::Branch::mybranch(); >+$branch = q{} if $branch eq 'NO_LIBRARY_SET'; > $branch ||= q{}; > my $op = $input->param('op'); > $op ||= q{}; > >-my ($template, $loggedinuser, $cookie) >- = get_template_and_user({template_name => "tools/overduerules.tmpl", >- query => $input, >- type => "intranet", >- authnotrequired => 0, >- flagsrequired => { tools => 'edit_notice_status_triggers'}, >- debug => 1, >- }); > my $err=0; > > # save the values entered into tables >-- >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