My little hack to make sure that this test updates a SavedSearch with
correct form values was causing issues for testing the ReportInstance
API.
----------------------------------------
* CRM-16701: Create API for saved searches
https://issues.civicrm.org/jira/browse/CRM-16701
case CRM_Utils_Type::T_TEXT:
case CRM_Utils_Type::T_LONGTEXT:
case CRM_Utils_Type::T_EMAIL:
- if ($fieldName == 'form_values') {
+ if ($fieldName == 'form_values' && $entity_name == 'SavedSearch') {
// This is a hack for the SavedSearch API. It expects form_values
// to be a serialized array.
// If you want to fix this, you should definitely read this forum