From: Bill Erickson Date: Wed, 5 Dec 2012 18:49:24 +0000 (-0500) Subject: notify csv X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8d1b9fefd71a4fb1bbcb67ed90701e6d119d1963;p=evergreen%2Fequinox.git notify csv Signed-off-by: Bill Erickson --- diff --git a/notify-csv.tt2 b/notify-csv.tt2 index 28d4f688a5..f340db1cb7 100644 --- a/notify-csv.tt2 +++ b/notify-csv.tt2 @@ -1,14 +1,16 @@ [% USE date; - core_type = event.event_def.hook.core_type; + # accommodate grouped events + SET event = event.0 IF event.size; SET target = [target] UNLESS event.event_def.group_field; + + core_type = event.event_def.hook.core_type; notice_org_unit = helpers.get_org_unit(event.event_def.owner); FOR target_obj IN target; # Mangle the data into a consistent shape - circ = ''; hold = ''; copy = '';