From 2bf32689c37e0520ffb4a7eda758786decffd94a Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 31 Jan 2014 08:46:58 -0500 Subject: [PATCH] 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 files changed, 1 insertions(+), 0 deletions(-) diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl index 23f407b..02f4b66 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.7.2.5