From: Galen Charlton Date: Wed, 10 Dec 2008 23:30:03 +0000 (-0600) Subject: bug 2505: turned on warnings for suggestion/acceptorreject.pl X-Git-Tag: v3.00.04~584 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=f3d2ae955f2f7a1910d63d65ce73f058e171ac06;p=koha.git bug 2505: turned on warnings for suggestion/acceptorreject.pl Also fixed case where HTML could have unclosed
elements, leading to warnings in the error log when accepting pending or rejected suggestions. Signed-off-by: Galen Charlton --- diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/acceptorreject.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/acceptorreject.tmpl index 4b426fd1ca..50e4c53aef 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/acceptorreject.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/acceptorreject.tmpl @@ -236,6 +236,7 @@ No rejected suggestions. + @@ -245,6 +246,4 @@ - - - \ No newline at end of file + diff --git a/suggestion/acceptorreject.pl b/suggestion/acceptorreject.pl index 5100334282..cbc0b98c2e 100755 --- a/suggestion/acceptorreject.pl +++ b/suggestion/acceptorreject.pl @@ -65,6 +65,7 @@ op can be : =cut use strict; +use warnings; use CGI; @@ -139,7 +140,6 @@ if ( $op eq "aorr_confirm" ) { $op = "else"; if (scalar(@deletelist)>0){ my $params = "&delete_field=".join ("&delete_field=",@deletelist); - warn $params; print $input->redirect("/cgi-bin/koha/suggestion/acceptorreject.pl?op=delete_confirm$params"); } }