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 83-88 our $branchcode = Link Here
83
    $input->param('branchcode') eq '*' ? undef
83
    $input->param('branchcode') eq '*' ? undef
84
  : $input->param('branchcode') ? $input->param('branchcode')
84
  : $input->param('branchcode') ? $input->param('branchcode')
85
  : $op                         ? $input->param('branchcode')
85
  : $op                         ? $input->param('branchcode')
86
  : GetBranchesCount() == 1     ? undef
86
  :                               C4::Branch::mybranch();
87
  :                               C4::Branch::mybranch();
87
88
88
my $dbh = C4::Context->dbh;
89
my $dbh = C4::Context->dbh;
89
- 

Return to bug 11625