From 00379c189976ac9e7e2429f5261a0b562206fc5d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 18 Feb 2020 16:13:11 +0100 Subject: [PATCH] Bug 23384: Fix use statement order for ArticleRequest::Status Koha::ArticleRequest is used by Koha::ArticleRequests so Koha::ArticleRequest::Status should not be needed in Koha::ArticleRequest. Also Koha::ArticleRequest::Status must be loaded before Koha::ArticleRequest Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson --- Koha/ArticleRequest.pm | 1 - Koha/ArticleRequests.pm | 2 +- Koha/Patron.pm | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/ArticleRequest.pm b/Koha/ArticleRequest.pm index 3dc5b991ae..ca566efb43 100644 --- a/Koha/ArticleRequest.pm +++ b/Koha/ArticleRequest.pm @@ -26,7 +26,6 @@ use Koha::Patrons; use Koha::Biblios; use Koha::Items; use Koha::Libraries; -use Koha::ArticleRequest::Status; use Koha::DateUtils qw(dt_from_string); use base qw(Koha::Object); diff --git a/Koha/ArticleRequests.pm b/Koha/ArticleRequests.pm index c43c23ea8e..9659650d24 100644 --- a/Koha/ArticleRequests.pm +++ b/Koha/ArticleRequests.pm @@ -23,8 +23,8 @@ use Carp; use Koha::Database; -use Koha::ArticleRequest; use Koha::ArticleRequest::Status; +use Koha::ArticleRequest; use base qw(Koha::Objects); diff --git a/Koha/Patron.pm b/Koha/Patron.pm index a53f893027..784d39c2a8 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -28,6 +28,7 @@ use Unicode::Normalize; use C4::Context; use C4::Log; use Koha::Account; +use Koha::ArticleRequests; use Koha::AuthUtils; use Koha::Checkouts; use Koha::Club::Enrollments; -- 2.39.5