X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FBAO%2FSavedSearch.php;h=182218994d1cf3d52ed91f6062c797eb362d97b6;hb=ba41614e99343a658d9eb585bac13185698ed798;hp=04ca400fd85866e55dada0beef0e9d98c58f0007;hpb=e6b011d12e89de64e61715c9a14c647f91cfc871;p=civicrm-core.git diff --git a/CRM/Contact/BAO/SavedSearch.php b/CRM/Contact/BAO/SavedSearch.php index 04ca400fd8..182218994d 100644 --- a/CRM/Contact/BAO/SavedSearch.php +++ b/CRM/Contact/BAO/SavedSearch.php @@ -309,4 +309,15 @@ LEFT JOIN civicrm_email ON (contact_a.id = civicrm_email.contact_id AND civicrm_ return $savedSearch; } + protected function assignTestValue($fieldName, &$fieldDef, $counter) { + if ($fieldName == 'form_values') { + // A dummy value for form_values. + $this->{$fieldName} = serialize( + array('sort_name' => "SortName{$counter}")); + } + else { + parent::assignTestValues($fieldName, $fieldDef, $counter); + } + } + }