From bc970fdf0afde545de07c94cb1525b4c77b91dec Mon Sep 17 00:00:00 2001 From: Johan Vervloet Date: Thu, 18 Jun 2015 21:46:08 +0200 Subject: [PATCH] CRM-16701 - worked around issue creating saved search. ---------------------------------------- * CRM-16701: Create API for saved searches https://issues.civicrm.org/jira/browse/CRM-16701 --- api/v3/SavedSearch.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/v3/SavedSearch.php b/api/v3/SavedSearch.php index d999004370..21e6b4c2bb 100644 --- a/api/v3/SavedSearch.php +++ b/api/v3/SavedSearch.php @@ -43,6 +43,11 @@ * @access public */ function civicrm_api3_saved_search_create($params) { + // The create function of the dao expects a 'formValues' that is + // not serialized. The get function returns form_values, that is + // serialized. For now, I will hack around this problem like this: + $params["formValues"] = unserialize($params["form_values"]); + return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params); } -- 2.25.1