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); }