Added unit test
[civicrm-core.git] / CRM / Mailing / PseudoConstant.php
index e92e46e869fa07e9bc73744003542df8c2957573..9a4c25f44b20c9305c0e9dfe9669ec7b7f784766 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016                                |
+ | Copyright CiviCRM LLC (c) 2004-2017                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2016
+ * @copyright CiviCRM LLC (c) 2004-2017
  */
 
 /**
@@ -196,7 +196,7 @@ class CRM_Mailing_PseudoConstant extends CRM_Core_PseudoConstant {
                 FROM    civicrm_mailing_component
                 WHERE   is_active = 1
                 AND     is_default = 1
-                GROUP BY component_type";
+                GROUP BY component_type, id";
 
       $dao = CRM_Core_DAO::executeQuery($queryDefaultComponents);