From 4865121b7b3b465322d7ccebd3e951d7ea1d50b8 Mon Sep 17 00:00:00 2001 From: iglocska Date: Mon, 24 Mar 2014 15:30:49 +0100 Subject: [PATCH] Fix to the csv export in the automation not allowing a full export ignoring ids flags --- app/Console/Command/EventShell.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Console/Command/EventShell.php b/app/Console/Command/EventShell.php index 2eb89b151..9ac2acaa7 100755 --- a/app/Console/Command/EventShell.php +++ b/app/Console/Command/EventShell.php @@ -136,11 +136,13 @@ class EventShell extends AppShell $id = $this->args[2]; $this->Job->id = $id; $extra = $this->args[3]; + if ($extra == 'csv_all') $ignore = 1; + else $ignore = 0; $eventIds = $this->Event->fetchEventIds($org, $isSiteAdmin); $eventCount = count($eventIds); $attributes[] = array(); foreach ($eventIds as $k => $eventId) { - $attributes = array_merge($this->Event->csv($org, $isSiteAdmin, $eventId['Event']['id'], $extra), $attributes); + $attributes = array_merge($this->Event->csv($org, $isSiteAdmin, $eventId['Event']['id'], $ignore), $attributes); if ($k % 10 == 0) { $this->Job->saveField('progress', $k / $eventCount * 80); }