From 3a43097400c305f9813ad42d84cdcae2efcaaf2f Mon Sep 17 00:00:00 2001 From: Aidan Saunders Date: Fri, 20 May 2022 19:47:27 +0100 Subject: [PATCH] Fixes dev/core#3475 - Allow 'yesno' as a valid value of `html_type`I --- CRM/Admin/Form/SettingTrait.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Admin/Form/SettingTrait.php b/CRM/Admin/Form/SettingTrait.php index 21cad1f64ba8..3a3abc0dbb48 100644 --- a/CRM/Admin/Form/SettingTrait.php +++ b/CRM/Admin/Form/SettingTrait.php @@ -312,6 +312,7 @@ protected function getQuickFormType($spec) { 'entity_reference' => 'EntityRef', 'advmultiselect' => 'Element', 'chainselect' => 'ChainSelect', + 'yesno' => 'YesNo', ]; $mapping += array_fill_keys(CRM_Core_Form::$html5Types, ''); return $mapping[$htmlType] ?? '';