Change parent class on mailing_form
authoreileen <emcnaughton@wikimedia.org>
Sun, 27 Oct 2019 21:49:48 +0000 (10:49 +1300)
committereileen <emcnaughton@wikimedia.org>
Sun, 27 Oct 2019 22:07:29 +0000 (11:07 +1300)
CRM/Mailing/Form/Search.php

index 6c03b4e9ef0de4dc460b9e6e6bf86d9aeadd561d..3568f7b3da98a5ed13f8d6e77692ba55c9aceb87 100644 (file)
  * @package CRM
  * @copyright CiviCRM LLC (c) 2004-2019
  */
-class CRM_Mailing_Form_Search extends CRM_Core_Form {
+class CRM_Mailing_Form_Search extends CRM_Core_Form_Search {
+
+  /**
+   * Get the default entity being queried.
+   *
+   * @return string
+   */
+  public function getDefaultEntity() {
+    return 'Mailing';
+  }
 
   public function preProcess() {
     parent::preProcess();