Skip to content

Commit

Permalink
Merge pull request #23525 from aydun/yesno
Browse files Browse the repository at this point in the history
Fixes dev/core#3475 - Allow 'yesno' as a valid value of `html_type`
  • Loading branch information
eileenmcnaughton authored May 20, 2022
2 parents e9eb60f + 3a43097 commit ceac046
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CRM/Admin/Form/SettingTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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] ?? '';
Expand Down

0 comments on commit ceac046

Please sign in to comment.