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

(-)a/C4/Acquisition.pm (-1 / +1 lines)
Lines 2955-2961 sub NotifyOrderUsers { Link Here
2955
        my $letter = C4::Letters::GetPreparedLetter(
2955
        my $letter = C4::Letters::GetPreparedLetter(
2956
            module      => 'acquisition',
2956
            module      => 'acquisition',
2957
            letter_code => 'ACQ_NOTIF_ON_RECEIV',
2957
            letter_code => 'ACQ_NOTIF_ON_RECEIV',
2958
            branchcode  => $library->branchcode,
2958
            branchcode  => $library->{branchcode},
2959
            tables      => {
2959
            tables      => {
2960
                'branches'    => $library,
2960
                'branches'    => $library,
2961
                'borrowers'   => $borrower,
2961
                'borrowers'   => $borrower,
(-)a/catalogue/search.pl (-1 / +1 lines)
Lines 425-431 my %is_nolimit = map { $_ => 1 } @nolimits; Link Here
425
if($params->{'multibranchlimit'}) {
425
if($params->{'multibranchlimit'}) {
426
    my $library_category = Koha::LibraryCategories->find( $params->{multibranchlimit} );
426
    my $library_category = Koha::LibraryCategories->find( $params->{multibranchlimit} );
427
    my @libraries = $library_category->libraries;
427
    my @libraries = $library_category->libraries;
428
    my $multibranch = '('.join( " or ", map { 'branch: ' . $_->branchcode } @libraries ) .')';
428
    my $multibranch = '('.join( " or ", map { 'branch: ' . $_->id } @libraries ) .')';
429
    push @limits, $multibranch if ($multibranch ne  '()');
429
    push @limits, $multibranch if ($multibranch ne  '()');
430
}
430
}
431
431
(-)a/members/members-home.pl (-1 / +1 lines)
Lines 50-56 if ( C4::Branch::onlymine ) { Link Here
50
    my $userenv = C4::Context->userenv;
50
    my $userenv = C4::Context->userenv;
51
    my $library = Koha::Libraries->find( $userenv->{'branch'} );
51
    my $library = Koha::Libraries->find( $userenv->{'branch'} );
52
    push @branchloop, {
52
    push @branchloop, {
53
        value => $library->branchcode,
53
        value => $library->id,
54
        branchcode => $library->branchcode,
54
        branchcode => $library->branchcode,
55
        branchname => $library->branchname,
55
        branchname => $library->branchname,
56
        selected => 1
56
        selected => 1
(-)a/opac/opac-search.pl (-2 / +1 lines)
Lines 482-488 if (@searchCategories > 0) { Link Here
482
if($params->{'multibranchlimit'}) {
482
if($params->{'multibranchlimit'}) {
483
    my $library_category = Koha::LibraryCategories->find( $params->{multibranchlimit} );
483
    my $library_category = Koha::LibraryCategories->find( $params->{multibranchlimit} );
484
    my @libraries = $library_category->libraries;
484
    my @libraries = $library_category->libraries;
485
    my $multibranch = '('.join( " or ", map { 'branch: ' . $_->branchcode } @libraries ) .')';
485
    my $multibranch = '('.join( " or ", map { 'branch: ' . $_->id } @libraries ) .')';
486
    push @limits, $multibranch if ($multibranch ne  '()');
486
    push @limits, $multibranch if ($multibranch ne  '()');
487
}
487
}
488
488
489
- 

Return to bug 15629