+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015 |
+ | Copyright CiviCRM LLC (c) 2004-2016 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
$fieldsToReturn = array('start_date', 'event_type_id', 'title', 'summary');
$request['params']['return'] = array_unique(array_merge($fieldsToReturn, $request['extra']));
$request['params']['options']['sort'] = 'start_date DESC';
- $request['params'] += array(
- 'is_template' => 0,
- 'is_active' => 1,
- );
+ if (empty($request['params']['id'])) {
+ $request['params'] += array(
+ 'is_template' => 0,
+ 'is_active' => 1,
+ );
+ }
}
/**