Thanks to Jason Stephenson for suggesting this solution.
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
my $resp = {
total => scalar(@$holds),
- ready => scalar(@ready)
+ ready => int(scalar(@ready))
};
if ($ctx_org) {
# count of holds ready at pickup lib with behind_desk true.
- $resp->{behind_desk} = scalar(
+ $resp->{behind_desk} = int(scalar(
grep {
$_->{pickup_lib} == $ctx_org and
$U->is_true($_->{behind_desk})
} @ready
- );
+ ));
}
return $resp;