From da46aae8588eeb98e8ce76c575c529ee23420d89 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 31 Jan 2014 08:46:58 -0500 Subject: [PATCH] [PASSED QA] Bug 11625 [QA Followup] - Default to logged in library for circ rules and notices & slips Signed-off-by: Katrin Fischer Fixes the case that someone logs in as database user and changes circulation rules without explicitly selecting a library first. --- admin/smart-rules.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl index 68c5d42..1a90401 100755 --- a/admin/smart-rules.pl +++ b/admin/smart-rules.pl @@ -44,6 +44,7 @@ my ($template, $loggedinuser, $cookie) my $type=$input->param('type'); my $branch = $input->param('branch') || C4::Branch::mybranch(); +$branch = '*' if $branch eq 'NO_LIBRARY_SET'; my $op = $input->param('op') || q{}; if ($op eq 'delete') { -- 1.8.3.2