The checkin screen expects to get the latest inventory back, so we
flesh it.
Signed-off-by: Jason Stephenson <jason@sigio.com>
);
}
+ # Flesh the latest inventory.
+ # NB: This survives the unflesh_copy below. Let's keep it that way.
+ my $alci = $self->editor->search_asset_latest_inventory([
+ {copy=>$self->copy->id},
+ {flesh => 1,
+ flesh_fields => {
+ alci => ['inventory_workstation']
+ }}]);
+ if ($alci && $alci->[0]) {
+ $self->copy->latest_inventory($alci->[0]);
+ }
+
for my $evt (@{$self->events}) {
my $payload = {};