From f2abf01c11a44ffbfa888af507b99fb2c390af31 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 Signed-off-by: Pedro Amorim --- 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 010308840ac..adc900da95b 100644 --- a/Koha/ILL/Request.pm +++ b/Koha/ILL/Request.pm @@ -1159,7 +1159,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; }; @@ -1795,10 +1795,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; @@ -1810,7 +1810,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.30.2