Bug 12627: Remove warnings
[koha-ffzg.git] / suggestion / suggestion.pl
index 72f40d3..211daa8 100755 (executable)
@@ -98,7 +98,7 @@ my $suggestion_ref  = $input->Vars;
 # get only the columns of Suggestion
 my $schema = Koha::Database->new()->schema;
 my $columns = ' '.join(' ', $schema->source('Suggestion')->columns).' ';
-my $suggestion_only = { map { $columns =~ / $_ / ? ($_ => $suggestion_ref->{$_}) : () } keys($suggestion_ref) };
+my $suggestion_only = { map { $columns =~ / $_ / ? ($_ => $suggestion_ref->{$_}) : () } keys %$suggestion_ref };
 $suggestion_only->{STATUS} = $suggestion_ref->{STATUS};
 
 delete $$suggestion_ref{$_} foreach qw( suggestedbyme op displayby tabcode edit_field );