Bug 23112: (follow-up) Fix test as per feedback
authorAndrew Isherwood <andrew.isherwood@ptfs-europe.com>
Tue, 7 Jan 2020 10:16:58 +0000 (10:16 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 10 Mar 2020 10:59:42 +0000 (10:59 +0000)
As per comment #48

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Koha/Illrequest.pm

index a0c9402..e81997f 100644 (file)
@@ -1222,7 +1222,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 {