From 7467081f6f05fc19a96766593ba9509481335f10 Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 11 Apr 2013 09:38:33 +1200 Subject: [PATCH] event api fix for id only --- api/v3/Event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/Event.php b/api/v3/Event.php index 04a9ab25ab..569456efe1 100644 --- a/api/v3/Event.php +++ b/api/v3/Event.php @@ -143,7 +143,7 @@ function civicrm_api3_event_get($params) { if (CRM_Utils_Array::value('is_template', $params)) { $eventDAO->whereAdd( '( is_template = 1 )' ); } - else { + elseif(empty($eventDAO->id)){ $eventDAO->whereAdd('( is_template IS NULL ) OR ( is_template = 0 )'); } -- 2.25.1