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:
parent
7e87b91ce3
commit
4df860f638
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue