Revert "Assign the translated formValues to itself"
authoreileen <emcnaughton@wikimedia.org>
Mon, 4 Feb 2019 05:03:49 +0000 (18:03 +1300)
committereileen <emcnaughton@wikimedia.org>
Mon, 4 Feb 2019 05:03:49 +0000 (18:03 +1300)
This reverts commit e8ef090642f0ff5639166b847a31f4e50eec3dd6.

CRM/Contact/BAO/Group.php
CRM/Contact/Form/Search/Advanced.php

index 00dead650a124f2d6dcc95be7d41cd70c0168d14..2c40bcec5cd4d9d906e76f562cfb6a73708797bf 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($params['form_values']);
+    $savedSearch->form_values = serialize(CRM_Contact_BAO_Query::convertFormValues($params['form_values']));
     $savedSearch->mapping_id = $mappingId;
     $savedSearch->search_custom_id = CRM_Utils_Array::value('search_custom_id', $params);
     $savedSearch->save();
index 35cec89cf20cc9528ae597c2bc4bf2fdd643b7f9..6c40a36ed7a4eee13a8fffa68f70824e05f45671 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->_formValues = $this->_params = CRM_Contact_BAO_Query::convertFormValues($this->_formValues, 0, FALSE, NULL, $this->entityReferenceFields);
+    $this->_params = CRM_Contact_BAO_Query::convertFormValues($this->_formValues, 0, FALSE, NULL, $this->entityReferenceFields);
     $this->_returnProperties = &$this->returnProperties();
     parent::postProcess();
   }