Browse Source

Bug 11747 [QA Followup] - Use system preference

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
new_12478_elasticsearch
Kyle Hall 9 years ago
parent
commit
c5c4c47708
  1. 12
      tools/overduerules.pl

12
tools/overduerules.pl

@ -72,12 +72,14 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
my $type = $input->param('type');
my $branch =
defined( $input->param('branch') ) ? $input->param('branch')
: GetBranchesCount() == 1 ? undef
: C4::Branch::mybranch();
$branch = q{} if $branch eq 'NO_LIBRARY_SET';
my $branch = $input->param('branch');
$branch =
defined $branch ? $branch
: C4::Context->preference('DefaultToLoggedInLibraryOverdueTriggers') ? C4::Branch::mybranch()
: GetBranchesCount() == 1 ? undef
: undef;
$branch ||= q{};
$branch = q{} if $branch eq 'NO_LIBRARY_SET';
my $op = $input->param('op');
$op ||= q{};

Loading…
Cancel
Save