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

(-)a/admin/smart-rules.pl (-1 / +1 lines)
Lines 43-49 my ($template, $loggedinuser, $cookie) Link Here
43
                            });
43
                            });
44
44
45
my $type=$input->param('type');
45
my $type=$input->param('type');
46
my $branch = $input->param('branch') || C4::Branch::mybranch();
46
my $branch = $input->param('branch') || GetBranchesCount() == 1 ? undef : C4::Branch::mybranch();
47
$branch = '*' if $branch eq 'NO_LIBRARY_SET';
47
$branch = '*' if $branch eq 'NO_LIBRARY_SET';
48
my $op = $input->param('op') || q{};
48
my $op = $input->param('op') || q{};
49
49
(-)a/tools/letter.pl (-1 / +1 lines)
Lines 109-114 my $op = $input->param('op') || ''; Link Here
109
our $branchcode =
109
our $branchcode =
110
    $input->param('branchcode') eq '*' ? undef
110
    $input->param('branchcode') eq '*' ? undef
111
  : $input->param('branchcode') ? $input->param('branchcode')
111
  : $input->param('branchcode') ? $input->param('branchcode')
112
  : GetBranchesCount() == 1     ? undef
112
  : $op                         ? $input->param('branchcode')
113
  : $op                         ? $input->param('branchcode')
113
  :                               C4::Branch::mybranch();
114
  :                               C4::Branch::mybranch();
114
115
115
- 

Return to bug 11625