From: Bill Erickson Date: Wed, 5 Dec 2012 20:25:44 +0000 (-0500) Subject: notify csv X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8755d124bdd2dca454adb46956bb84f4b6fd34b0;p=evergreen%2Fequinox.git notify csv Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm index 0966bfd72a..e8dd0aea41 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm @@ -101,7 +101,7 @@ $_TT_helpers = { get_org_unit => sub { my $org_id = shift; return $org_id if ref $org_id; - return new_editor()->get_actor_org_unit($org_id); + return new_editor()->retrieve_actor_org_unit($org_id); }, # given a copy, returns the title and author in a hash diff --git a/notify-csv.tt2 b/notify-csv.tt2 index f340db1cb7..c19e8f9a76 100644 --- a/notify-csv.tt2 +++ b/notify-csv.tt2 @@ -70,9 +70,9 @@ [%- '"' _ helpers.escape_csv(user.email) _ '",' -%] [%- '"' _ helpers.escape_csv(notice_org_unit.shortname) _ '",' -%] [%- '"' _ helpers.escape_csv(org_unit.shortname) _ '",' -%] -[%- '"' _ helpers.escape_csv(org_name.name) _ '",' -%] +[%- '"' _ helpers.escape_csv(org_unit.name) _ '",' -%] [%- '"' _ helpers.escape_csv(copy.barcode) _ '",' -%] [%- '"' _ helpers.escape_csv(due_date) _ '",' -%] [%- '"' _ helpers.escape_csv(title) _ '",' -%] -[%- '"' _ helpers.escape_csv(event.id) _ '"' -%] +[%- '"' _ helpers.escape_csv(event.id) _ '"' %] [% END %]