Skip to content

Commit

Permalink
Merge pull request #26415 from larssandergreen/options_per_line-for-c…
Browse files Browse the repository at this point in the history
…ustoms-fields

dev/core#3815 Set options_per_line to zero when changing Custom Field html_type
  • Loading branch information
mlutfy authored Jun 6, 2023
2 parents 193f052 + 19b46c9 commit 0760854
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/CRM/Custom/Form/Field.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@
if (htmlType === 'CheckBox' || htmlType === 'Radio') {
$('#serialize', $form).prop('checked', htmlType === 'CheckBox');
}
else {
$("#options_per_line", $form).val('');
}

showSearchRange(dataType);
customOptionHtmlType(dataType);
Expand Down

0 comments on commit 0760854

Please sign in to comment.