From f35962cb8570c10f6fcac17f53f02ec4b4106d08 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
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
---
 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 f540b802da..1787ef9e47 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 c0497174a8..ea65e22a9d 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.11.0