dev/core#469 Fix Error on action 'Email - schedule/send via CiviMail' with multiple...
authoreileen <emcnaughton@wikimedia.org>
Tue, 5 Feb 2019 09:49:35 +0000 (22:49 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 5 Feb 2019 09:49:35 +0000 (22:49 +1300)
Alternate fix to reverted https://github.com/civicrm/civicrm-core/pull/13250

CRM/Contact/Form/Task.php

index a8b9691776af14bdc20988f688e80b8031a60ec4..74a62c32a00fe059bcdcaee0c57e6216e941a573 100644 (file)
@@ -544,7 +544,9 @@ class CRM_Contact_Form_Task extends CRM_Core_Form_Task {
       $ssId = $this->get('ssID');
       $hiddenSmartParams = array(
         'group_type' => array('2' => 1),
-        'form_values' => $this->get('formValues'),
+        // queryParams have been preprocessed esp WRT any entity reference fields - see +
+        // https://github.com/civicrm/civicrm-core/pull/13250
+        'form_values' => $this->get('queryParams'),
         'saved_search_id' => $ssId,
         'search_custom_id' => $this->get('customSearchID'),
         'search_context' => $this->get('context'),