location of the previous item in the stream when there /is/ no previous
item in the stream
git-svn-id: svn://svn.open-ils.org/ILS/trunk@18838
dcc99617-32d9-48b4-a31d-
7c20da2025e4
}
}
}) or return $e->die_event;
+ return 0 if not @$unit;
$e->retrieve_serial_unit($unit->[0]->{"id"}) or $e->die_event;
}
my $prev_unit = _unit_by_iss_and_str($e,$prev_iss,$curr_item->stream);
return $prev_unit if defined $U->event_code($prev_unit);
+ return 0 if not $prev_unit;
if ($prev_unit->location != $new_loc) {
$prev_unit->location($new_loc);