From 6aa3c9b1c6e7df1c2ba3f99168dc65e85561bf12 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 b11c4d7..1d391b2 100755 --- a/tools/overduerules.pl +++ b/tools/overduerules.pl @@ -71,9 +71,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{}; my $op = $input->param('op'); -- 1.7.2.5