From c9285e107206bb3d1a8af4eee771ebd7fba4bd68 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 6 Oct 2021 09:10:38 -0300 Subject: [PATCH] Bug 29182: (follow-up) Simplify Koha::ArticleRequest->store Signed-off-by: Tomas Cohen Arazi Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- Koha/ArticleRequest.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Koha/ArticleRequest.pm b/Koha/ArticleRequest.pm index 2d7f5596da..be4a895e2e 100644 --- a/Koha/ArticleRequest.pm +++ b/Koha/ArticleRequest.pm @@ -200,12 +200,12 @@ will have notifications sent. sub store { my ($self) = @_; - if ( $self->in_storage ) { - return $self->SUPER::store; - } else { + + if ( !$self->in_storage ) { $self->created_on( dt_from_string() ); - return $self->SUPER::store; } + + return $self->SUPER::store; } =head2 Internal methods -- 2.39.5