This allows for suggestions that contain characters such
as the ampersand to have their status changed.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
use C4::Dates qw(format_date);
use C4::Members;
use C4::Debug;
+use URI::Escape;
sub Init{
my $suggestion= shift @_;
$$suggestion_ref{'suggestionid'}=$suggestionid;
&ModSuggestion($suggestion_ref);
}
- my $params;
+ my $params = '';
foreach my $key (
qw(
displayby branchcode title author isbn publishercode copyrightdate
)
)
{
- $params .= $key . '=' . $input->param($key) . '&'
- if $input->param($key);
+ $params .= $key . '=' . uri_escape($input->param($key)) . '&'
+ if defined($input->param($key));
}
print $input->redirect("/cgi-bin/koha/suggestion/suggestion.pl?$params");
}elsif ($op eq "delete" ) {