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 110-115 our $branchcode = Link Here
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
  : $op                         ? $input->param('branchcode')
112
  : $op                         ? $input->param('branchcode')
113
  : GetBranchesCount() == 1     ? undef
113
  :                               C4::Branch::mybranch();
114
  :                               C4::Branch::mybranch();
114
115
115
my $dbh = C4::Context->dbh;
116
my $dbh = C4::Context->dbh;
116
- 

Return to bug 11625