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

(-)a/members/member.pl (-19 lines)
Lines 46-69 my $searchmember = $input->param('searchmember'); Link Here
46
my $quicksearch = $input->param('quicksearch') // 0;
46
my $quicksearch = $input->param('quicksearch') // 0;
47
my $circsearch = $input->param('circsearch') // 0;
47
my $circsearch = $input->param('circsearch') // 0;
48
48
49
if ( $quicksearch and $searchmember && !$circsearch ) {
50
    my $branchcode;
51
    if ( C4::Context::only_my_library ) {
52
        my $userenv = C4::Context->userenv;
53
        $branchcode = $userenv->{'branch'};
54
    }
55
    my $patron = Koha::Patrons->find( { cardnumber => $searchmember } );
56
    if (
57
        $patron
58
        and (  ( $branchcode and $patron->branchcode eq $branchcode )
59
            or ( not $branchcode ) )
60
      )
61
    {
62
        print $input->redirect( "/cgi-bin/koha/members/moremember.pl?borrowernumber=" . $patron->borrowernumber );
63
        exit;
64
    }
65
}
66
67
my $searchfieldstype = $input->param('searchfieldstype') || 'standard';
49
my $searchfieldstype = $input->param('searchfieldstype') || 'standard';
68
my $searchtype       = $input->param('searchtype');
50
my $searchtype       = $input->param('searchtype');
69
51
70
- 

Return to bug 36302