From 33b93c3590089567779fad50963087d999e03a24 Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 16 Oct 2018 21:48:50 +1300 Subject: [PATCH] Fix 'default_invoice_page' to be supported by settings.getoptions. 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 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/settings/Contribute.setting.php b/settings/Contribute.setting.php index c91cec28db..5bceb7424e 100644 --- a/settings/Contribute.setting.php +++ b/settings/Contribute.setting.php @@ -29,10 +29,7 @@ * * @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', -- 2.25.1