From 09a0300f7a2d0235918ed505ae3d64d8533b20a0 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 25 Mar 2024 10:08:18 -0300 Subject: [PATCH] Bug 35581: (follow-up) Remove internal use of ->illrequestattributes By now, we shouldn't be using the deprecated method internally. Signed-off-by: Tomas Cohen Arazi --- Koha/ILL/Request.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Koha/ILL/Request.pm b/Koha/ILL/Request.pm index 5bf9717a074..f525ef12eff 100644 --- a/Koha/ILL/Request.pm +++ b/Koha/ILL/Request.pm @@ -1160,7 +1160,7 @@ Return a string representing the material type of this request or undef sub get_type { my ($self) = @_; - my $attr = $self->illrequestattributes->find({ type => 'type'}); + my $attr = $self->extended_attributes->find({ type => 'type'}); return if !$attr; return $attr->value; }; @@ -1766,10 +1766,10 @@ and transport type sub get_notice { my ( $self, $params ) = @_; - my $title = $self->illrequestattributes->find( + my $title = $self->extended_attributes->find( { type => 'title' } ); - my $author = $self->illrequestattributes->find( + my $author = $self->extended_attributes->find( { type => 'author' } ); my $metahash = $self->metadata; @@ -1781,7 +1781,7 @@ sub get_notice { my $metastring = join("\n", @metaarray); my $illrequestattributes = { - map { $_->type => $_->value } $self->illrequestattributes->as_list + map { $_->type => $_->value } $self->extended_attributes->as_list }; my $letter = C4::Letters::GetPreparedLetter( -- 2.44.0