Bug 25814: Tidy code

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Kyle Hall 2023-11-02 12:33:52 -04:00 committed by Tomas Cohen Arazi
parent 7e87b91ce3
commit 4df860f638
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -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