Fix notice on first loading activity search form
authoreileen <emcnaughton@wikimedia.org>
Wed, 2 Jan 2019 00:44:02 +0000 (13:44 +1300)
committereileen <emcnaughton@wikimedia.org>
Wed, 2 Jan 2019 00:44:02 +0000 (13:44 +1300)
CRM/Activity/Form/Search.php

index 7e177c5a7098e26d81938140411d79f7a2e73990..f59e18c13b8de2ac1f9bab46a373f015d83492b5 100644 (file)
@@ -413,7 +413,7 @@ class CRM_Activity_Form_Search extends CRM_Core_Form_Search {
    *   reference to the array of default values
    */
   public function setDefaultValues() {
-    return array_merge($this->getEntityDefaults($this->getDefaultEntity()), $this->_formValues);
+    return array_merge($this->getEntityDefaults($this->getDefaultEntity()), (array) $this->_formValues);
   }
 
   /**