View | Details | Raw Unified | Return to bug 11747
Collapse All | Expand All

(-)a/tools/overduerules.pl (-6 / +7 lines)
Lines 72-83 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
72
72
73
my $type = $input->param('type');
73
my $type = $input->param('type');
74
74
75
my $branch =
75
my $branch = $input->param('branch');
76
    defined( $input->param('branch') ) ? $input->param('branch')
76
$branch =
77
  : GetBranchesCount() == 1            ? undef
77
    defined $branch                                                    ? $branch
78
  :                                      C4::Branch::mybranch();
78
  : C4::Context->preference('DefaultToLoggedInLibraryOverdueTriggers') ? C4::Branch::mybranch()
79
$branch = q{} if $branch eq 'NO_LIBRARY_SET';
79
  : GetBranchesCount() == 1                                            ? undef
80
  :                                                                      undef;
80
$branch ||= q{};
81
$branch ||= q{};
82
$branch = q{} if $branch eq 'NO_LIBRARY_SET';
81
83
82
my $op = $input->param('op');
84
my $op = $input->param('op');
83
$op ||= q{};
85
$op ||= q{};
84
- 

Return to bug 11747