Eileen has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/249010

Change subject: Revert "CRM-17075 further fix to handling entity reference in 
search form"
......................................................................

Revert "CRM-17075 further fix to handling entity reference in search form"

This reverts commit 979dfac5c7d6de84b7e6641776e44f3e20e7585b.

This commit was in the Fuzion repo but is rejected from that repo (& amended 
from 4.7) so removing

Change-Id: I405b8c8295e50a5074e4de6c1317534d2ad1c841
---
M CRM/Contact/Form/Task/SaveSearch.php
1 file changed, 1 insertion(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/civicrm-core 
refs/changes/10/249010/1

diff --git a/CRM/Contact/Form/Task/SaveSearch.php 
b/CRM/Contact/Form/Task/SaveSearch.php
index a02371e..fc95203 100644
--- a/CRM/Contact/Form/Task/SaveSearch.php
+++ b/CRM/Contact/Form/Task/SaveSearch.php
@@ -187,13 +187,7 @@
     //save the search
     $savedSearch = new CRM_Contact_BAO_SavedSearch();
     $savedSearch->id = $this->_id;
-    // Use the query parameters rather than the form values - these have 
already been assessed / converted
-    // with the extra knowledge that the form has.
-    // Note that we want to move towards a standardised way of saving the 
query that is not
-    // an exact match for the form requirements & task the form layer with 
converting backwards and forwards.
-    // Ideally per CRM-17075 we will use entity reference fields heavily in 
the form layer & convert to the
-    // sql operator syntax at the query layer.
-    $savedSearch->form_values = serialize($this->get('queryParams'));
+    $savedSearch->form_values = serialize($this->get('formValues'));
     $savedSearch->mapping_id = $mappingId;
     $savedSearch->search_custom_id = $this->get('customSearchID');
     $savedSearch->save();

-- 
To view, visit https://gerrit.wikimedia.org/r/249010
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I405b8c8295e50a5074e4de6c1317534d2ad1c841
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/civicrm-core
Gerrit-Branch: civi-4.6.9
Gerrit-Owner: Eileen <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to