From fc24df29d2bf724d6bc988519a0996ef9636270e Mon Sep 17 00:00:00 2001 From: Joe Atzberger Date: Mon, 9 Jun 2008 13:52:41 -0500 Subject: [PATCH] Bugfix: show (cleaned) comment back on detail page. Also added minor debug feedback to review page. Signed-off-by: Joshua Ferraro --- koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tmpl | 3 ++- opac/opac-review.pl | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tmpl index b21393d527..3fdd21701b 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tmpl @@ -49,6 +49,7 @@
+
CGI debug is on.
@@ -64,7 +65,7 @@ Note: this window will close automatically in 5 seconds
-
+?debug=1" method="post"> " />
Comments on by diff --git a/opac/opac-review.pl b/opac/opac-review.pl index 52f96e7be6..57a460f42a 100755 --- a/opac/opac-review.pl +++ b/opac/opac-review.pl @@ -55,10 +55,10 @@ if (defined $review) { } else { if ($clean ne $review) { push @errors, {scrubbed=>$clean}; - my $js_ok_review = $clean; - $js_ok_review =~ s/"/"/g; # probably redundant w/ TMPL ESCAPE=JS - $template->param(clean_review=>$js_ok_review); } + my $js_ok_review = $clean; + $js_ok_review =~ s/"/"/g; # probably redundant w/ TMPL ESCAPE=JS + $template->param(clean_review=>$js_ok_review); if ($savedreview) { updatereview($biblionumber, $borrowernumber, $clean); } else { -- 2.39.5