From: berick Date: Mon, 23 May 2011 18:16:32 +0000 (-0400) Subject: set imported_as / import_time on import items after successful import X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4c0d9bcacb0cb29c2a2c33032fed8392299353b5;p=contrib%2FConifer.git set imported_as / import_time on import items after successful import --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm index c4ca18c4ff..b3e516b2f0 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm @@ -1550,6 +1550,16 @@ sub import_record_asset_list_impl { next; } + # set the import data on the import item + $item->imported_as($copy->id); # $copy->id is set by create_copy() ^-- + $item->import_time('now'); + + unless($e->update_vandelay_import_item($item)) { + $$report_args{evt} = $e->die_event; + respond_with_status($report_args); + next; + } + # -------------------------------------------------------------------------------- # Item import succeeded # --------------------------------------------------------------------------------