From a5b2ec3a2b906faf96574da268c48284dc26a6db Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 5 Mar 2014 07:55:51 -0500 Subject: [PATCH] Bug 11747 [QA Followup] - Don't default to branch specific rules if only one branch exists --- tools/overduerules.pl | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/overduerules.pl b/tools/overduerules.pl index 6341610..66c6801 100755 --- a/tools/overduerules.pl +++ b/tools/overduerules.pl @@ -73,9 +73,9 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( my $type = $input->param('type'); my $branch = - defined( $input->param('branch') ) - ? $input->param('branch') - : C4::Branch::mybranch(); + defined( $input->param('branch') ) ? $input->param('branch') + : GetBranchesCount() == 1 ? undef + : C4::Branch::mybranch(); $branch = q{} if $branch eq 'NO_LIBRARY_SET'; $branch ||= q{}; -- 1.7.2.5