From 8d1b9fefd71a4fb1bbcb67ed90701e6d119d1963 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 5 Dec 2012 13:49:24 -0500 Subject: [PATCH] notify csv Signed-off-by: Bill Erickson --- notify-csv.tt2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 = ''; -- 2.11.0