Bug 23403: Fix whitespace
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 23 Mar 2020 12:52:58 +0000 (08:52 -0400)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Thu, 11 Jun 2020 13:11:45 +0000 (15:11 +0200)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>

(cherry picked from commit dbc4e4c63d83beed132a4d9b20ef47b2327f4f67)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

C4/SIP/ILS/Transaction/Hold.pm

index d7b0705..c8b64c7 100644 (file)
@@ -72,10 +72,11 @@ sub drop_hold {
        my $self = shift;
     my $patron = Koha::Patrons->find( $self->{patron}->borrowernumber );
     unless ($patron) {
-               $self->screen_msg('drop_hold called with undefined patron');
-               $self->ok(0);
-               return $self;
-       }
+        $self->screen_msg('drop_hold called with undefined patron');
+        $self->ok(0);
+        return $self;
+    }
+
     my $item = Koha::Items->find({ barcode => $self->{item}->id });
 
     my $holds = Koha::Holds->search(
@@ -97,10 +98,10 @@ sub change_hold {
        my $self = shift;
     my $patron = Koha::Patrons->find( $self->{patron}->borrowernumber );
     unless ($patron) {
-               $self->screen_msg('change_hold called with undefined patron');
-               $self->ok(0);
-               return $self;
-       }
+        $self->screen_msg('change_hold called with undefined patron');
+        $self->ok(0);
+        return $self;
+    }
     my $item = Koha::Items->find({ barcode => $self->{item}->id });
     unless ($item) {
                $self->screen_msg('No biblio record matches barcode "' . $self->{item}->id . '".');