From fa281d83f1ca6dcd5d21bb7eed982985541e3827 Mon Sep 17 00:00:00 2001
From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com>
Date: Tue, 7 Jan 2020 10:16:58 +0000
Subject: [PATCH] Bug 23112: (follow-up) Fix test as per feedback

As per comment #48

https://bugs.koha-community.org/show_bug.cgi?id=23113
---
 Koha/Illrequest.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Koha/Illrequest.pm b/Koha/Illrequest.pm
index 392043202f..4d6afd6784 100644
--- a/Koha/Illrequest.pm
+++ b/Koha/Illrequest.pm
@@ -1223,7 +1223,7 @@ sub check_out {
         $issue_args[0] = $patron->unblessed;
         my $issue = C4::Circulation::AddIssue(@issue_args);
 
-        if ($issue && %{$issue}) {
+        if ($issue) {
             # Update the request status
             $self->status('CHK')->store;
             return {
-- 
2.11.0