From 8f54791d0293c0e0515326e9a95d96a688ff2c7e 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 3efa2d2..e86dd5a 100755 --- a/admin/smart-rules.pl +++ b/admin/smart-rules.pl @@ -45,6 +45,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