Skip to content

Commit

Permalink
lets make crmAutocomplete non mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
kurund committed Dec 6, 2023
1 parent aafcc3f commit 1c865e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ang/crmUi.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@
this.$onChanges = function() {
// Timeout is to wait for `placeholder="{{ ts(...) }}"` to be resolved
$timeout(function() {
$element.crmAutocomplete(ctrl.entity, ctrl.crmAutocompleteParams, {
$element.crmAutocomplete(ctrl.entity, ctrl.crmAutocompleteParams || {}, {
multiple: ctrl.multi,
// Only auto-open if there are no static options
minimumInputLength: ctrl.autoOpen && _.isEmpty(ctrl.staticOptions) ? 0 : 1,
Expand Down
2 changes: 1 addition & 1 deletion ext/afform/admin/ang/afGuiEditor/config-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
<p class="help-block">{{:: ts('The data can be processed via email verification. Email field should be included in the form for this functionality.') }}</p>
<div class="form-inline" ng-if="editor.afform.allow_verification_by_email">
<label>{{:: ts('Email template') }}</label>
<input class="form-control" crm-autocomplete="'MessageTemplate'" ng-model="editor.afform.email_confirmation_template_id" auto-open="true" placeholder="{{:: ts('- select -') }}">
<input class="form-control" crm-autocomplete="'MessageTemplate'" id="afform_email_confirmation_template_id" ng-model="editor.afform.email_confirmation_template_id" auto-open="true" placeholder="{{:: ts('- select -') }}">
</div>
</div>

Expand Down

0 comments on commit 1c865e4

Please sign in to comment.