Assign the translated formValues to itself
authorFrancesc Bassas i Bullich <francesc@babu.cat>
Fri, 14 Dec 2018 11:15:13 +0000 (12:15 +0100)
committerFrancesc Bassas i Bullich <francesc@babu.cat>
Fri, 14 Dec 2018 11:21:25 +0000 (12:21 +0100)
CRM/Contact/BAO/Group.php
CRM/Contact/Form/Search/Advanced.php

index e3a05617c7496b916322ced99a1ac1446bca735c..72c23c478a3dc4cc833e98b775a9a0905a2001e3 100644 (file)
@@ -695,7 +695,7 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group {
     //create/update saved search record.
     $savedSearch = new CRM_Contact_BAO_SavedSearch();
     $savedSearch->id = $ssId;
-    $savedSearch->form_values = serialize(CRM_Contact_BAO_Query::convertFormValues($params['form_values']));
+    $savedSearch->form_values = serialize($params['form_values']);
     $savedSearch->mapping_id = $mappingId;
     $savedSearch->search_custom_id = CRM_Utils_Array::value('search_custom_id', $params);
     $savedSearch->save();
index 5c7c53ed20dc1dcafda277321d5e5a4a587d741a..84be3fbf22ad95643ea9e7599c19f7a7d696305b 100644 (file)
@@ -314,7 +314,7 @@ class CRM_Contact_Form_Search_Advanced extends CRM_Contact_Form_Search {
 
     CRM_Core_BAO_CustomValue::fixCustomFieldValue($this->_formValues);
 
-    $this->_params = CRM_Contact_BAO_Query::convertFormValues($this->_formValues, 0, FALSE, NULL, $this->entityReferenceFields);
+    $this->_formValues = $this->_params = CRM_Contact_BAO_Query::convertFormValues($this->_formValues, 0, FALSE, NULL, $this->entityReferenceFields);
     $this->_returnProperties = &$this->returnProperties();
     parent::postProcess();
   }