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

(-)a/course_reserves/course-reserves.pl (-2 / +1 lines)
Lines 46-52 if ($search_on) { Link Here
46
}
46
}
47
47
48
my $courses = GetCourses(%params);
48
my $courses = GetCourses(%params);
49
if ( @$courses == 1 ) {
49
if ( $search_on && @$courses == 1 ) {
50
    print $cgi->redirect("/cgi-bin/koha/course_reserves/course-details.pl?course_id=" . $courses->[0]->{'course_id'});
50
    print $cgi->redirect("/cgi-bin/koha/course_reserves/course-details.pl?course_id=" . $courses->[0]->{'course_id'});
51
} else {
51
} else {
52
    $template->param( courses => $courses );
52
    $template->param( courses => $courses );
53
- 

Return to bug 8215