From 2dd3fa7bffb3895298b6695ca784203bf06a163f Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Mon, 18 Nov 2019 14:56:05 +0100
Subject: [PATCH] Bug 22784: Bugfix - do not modify #description build Debian
 packages from a git repository

---
 suggestion/suggestion.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl
index 6a2a08046b..4c16f87b4b 100755
--- a/suggestion/suggestion.pl
+++ b/suggestion/suggestion.pl
@@ -98,7 +98,7 @@ my $filter_archived = $input->param('filter_archived');
 my $reasonsloop     = GetAuthorisedValues("SUGGEST");
 
 # filter informations which are not suggestion related.
-my $suggestion_ref  = $input->Vars;
+my $suggestion_ref  = { %{$input->Vars} }; # Copying, otherwise $input will be modified
 
 # get only the columns of Suggestion
 my $schema = Koha::Database->new()->schema;
-- 
2.11.0