@@ -, +, @@ --- Koha/Illrequest.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) --- a/Koha/Illrequest.pm +++ a/Koha/Illrequest.pm @@ -1651,11 +1651,9 @@ sub get_notice { } my $metastring = join("\n", @metaarray); - my $illrequestattributes = {}; - my $attributes = $self->illrequestattributes; - while ( my $attribute = $attributes->next ) { - $illrequestattributes->{$attribute->type} = $attribute->value; - } + my $illrequestattributes = { + map { $_->type => $_->value } $self->illrequestattributes->as_list + }; my $letter = C4::Letters::GetPreparedLetter( module => 'ill', --