Merge pull request #13134 from agileware/CIVICRM-1006
[civicrm-core.git] / CRM / Core / SelectValues.php
index 3c0eff439f0444ed1e7431cdb8ec33c56977a987..87b08e890f2393507f1948b21660f8caea1ae465 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018                                |
+ | Copyright CiviCRM LLC (c) 2004-2019                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -31,7 +31,7 @@
  * smart caching scheme on a per domain basis
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
  * $Id$
  *
  */
@@ -1151,7 +1151,7 @@ class CRM_Core_SelectValues {
       'custom_group_id.is_active' => 1,
       'is_active' => 1,
       'is_searchable' => 1,
-      'options' => ['sort' => ['custom_group_id.weight', 'weight']],
+      'options' => ['sort' => ['custom_group_id.weight', 'weight'], 'limit' => 0],
     ]);
     foreach ($custom['values'] as $field) {
       $options['custom_' . $field['name']] = $field['custom_group_id.title'] . ': ' . $field['label'];