diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reviews/reviewswaiting.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reviews/reviewswaiting.tt index 536ab93cc2..ef991d33c7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reviews/reviewswaiting.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reviews/reviewswaiting.tt @@ -97,10 +97,27 @@ [% review.review | html %] - [% IF ( status ) %] Unapprove[% ELSE %] Approve[% END %] + [% IF ( review.approved ) %] +
+ [% INCLUDE 'csrf-token.inc' %] + + + + +
+ [% ELSE %] +
+ [% INCLUDE 'csrf-token.inc' %] + + + + +
+ [% END %]
[% INCLUDE 'csrf-token.inc' %] +
diff --git a/reviews/reviewswaiting.pl b/reviews/reviewswaiting.pl index f6bd5ff29d..b17dc8b9e1 100755 --- a/reviews/reviewswaiting.pl +++ b/reviews/reviewswaiting.pl @@ -42,11 +42,11 @@ my $page = $query->param('page') || 1; my $count = C4::Context->preference('numSearchResults') || 20; my $total = Koha::Reviews->search_limited({ approved => $status })->count; -if ( $op eq 'approve' ) { +if ( $op eq 'cud-approve' ) { my $review = Koha::Reviews->find( $reviewid ); $review->approve if $review; } -elsif ( $op eq 'unapprove' ) { +elsif ( $op eq 'cud-unapprove' ) { my $review = Koha::Reviews->find( $reviewid ); $review->unapprove if $review; }