Fix 'default_invoice_page' to be supported by settings.getoptions.
authoreileen <emcnaughton@wikimedia.org>
Tue, 16 Oct 2018 08:48:50 +0000 (21:48 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 16 Oct 2018 08:54:05 +0000 (21:54 +1300)
Settings.getoptions supports a lesser format-set to CRM_Core_DAO::buildOptions does
in terms of pseudoconstant keys. Ideally we would fix that but for now
fix the fatal on the contribution page settings page by using
a format that is supported

settings/Contribute.setting.php

index c91cec28dbea8fe4968db9fc6c86f5021b316f12..5bceb7424e9d151d213d1b0245501fe27702c158 100644 (file)
  *
  * @package CRM
  * @copyright CiviCRM LLC (c) 2004-2017
- * $Id$
  *
- */
-/*
  * Settings metadata file
  */
 
@@ -125,7 +122,8 @@ return array(
     'quick_form_type' => 'Element',
     'default' => NULL,
     'pseudoconstant' => array(
-      'name' => 'contributionPage',
+      // @todo - handle table style pseudoconstants for settings & avoid deprecated function.
+      'callback' => 'CRM_Contribute_PseudoConstant::contributionPage',
     ),
     'html_type' => 'select',
     'add' => '4.7',