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

(-)a/opac/opac-ratings.pl (-1 / +7 lines)
Lines 45-50 my $rating_old_value = $query->param('rating_value'); Link Here
45
my $rating_value     = $query->param('rating');
45
my $rating_value     = $query->param('rating');
46
my $rating;
46
my $rating;
47
47
48
# If JS is disabled and a user click on "Rate me" without selecting a rate
49
unless ( $biblionumber and $rating_value ) {
50
    print $query->redirect(
51
        "/cgi-bin/koha/opac-detail.pl?biblionumber=$biblionumber");
52
    exit;
53
}
54
48
if ( !$rating_old_value ) {
55
if ( !$rating_old_value ) {
49
    $rating = AddRating( $biblionumber, $loggedinuser, $rating_value );
56
    $rating = AddRating( $biblionumber, $loggedinuser, $rating_value );
50
}
57
}
51
- 

Return to bug 16179