Skip to content

Commit

Permalink
Bug 25814: Tidy code
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle M Hall <[email protected]>
Signed-off-by: Tomas Cohen Arazi <[email protected]>
  • Loading branch information
kylemhall authored and tomascohen committed Nov 8, 2023
1 parent 7e87b91 commit 4df860f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions C4/SIP/ILS.pm
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,14 @@ sub checkin {
$patron->{items} = [ grep { $_ ne $item_id } @{ $patron->{items} } ];
my $message = '';
if ($account->{show_checkin_message}) {
if ( $account->{show_checkin_message} ) {
my $permanent_location;
if (C4::Context->preference("UseLocationAsAQInSIP")) {
if ( C4::Context->preference("UseLocationAsAQInSIP") ) {
$permanent_location = $item->{'permanent_location'};
} else {
$permanent_location = Koha::Libraries->find($item->{permanent_location})->branchname;
$permanent_location = Koha::Libraries->find( $item->{permanent_location} )->branchname;
}
$message .= "Item checked-in: " . $permanent_location . " - " . $item->{location} . ".";
$message .= "Item checked-in: $permanent_location - $item->{location}.";
}
# Check for overdue fines to display
Expand Down

0 comments on commit 4df860f

Please sign in to comment.