Bugzilla – Attachment 38280 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 - Implement DefaultToLoggedInLibraryOverdueTriggers
Bug-11747---Implement-DefaultToLoggedInLibraryOver.patch (text/plain), 2.23 KB, created by
Kyle M Hall (khall)
on 2015-04-21 15:20:52 UTC
(
hide
)
Description:
Bug 11747 - Implement DefaultToLoggedInLibraryOverdueTriggers
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-04-21 15:20:52 UTC
Size:
2.23 KB
patch
obsolete
>From e33ea1d08dbf06254e93275df513c61d74dd89d3 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 21 Apr 2015 11:19:24 -0400 >Subject: [PATCH] Bug 11747 - Implement DefaultToLoggedInLibraryOverdueTriggers > >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" > >Signed-off-by: Nick Clemens <nick@quecheelibrary.org> >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > tools/overduerules.pl | 29 +++++++++++++++++++---------- > 1 files changed, 19 insertions(+), 10 deletions(-) > >diff --git a/tools/overduerules.pl b/tools/overduerules.pl >index 463c73e..8d52361 100755 >--- a/tools/overduerules.pl >+++ b/tools/overduerules.pl >@@ -59,20 +59,29 @@ 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') >+ : GetBranchesCount() == 1 ? undef >+ : 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.tt", >- 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