Skip to content

Commit 16fd023

Browse files
authored
Merge pull request civicrm#34244 from colemanw/money
Afform - allow money number inputs to set decimal places
2 parents 83fa330 + f496f39 commit 16fd023

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/afform/admin/ang/afGuiEditor/elements/afGuiField-menu.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<input type="number" class="form-control four" ng-model="$ctrl.node.defn.input_attrs.max" ng-change="$ctrl.onChangeMax()" title="{{:: ts('Maximum value') }}" placeholder="{{:: ts('Max') }}">
2626
</div>
2727
</li>
28-
<li ng-if="($ctrl.fieldDefn.input_type === 'Number' || $ctrl.fieldDefn.input_type === 'Range') && $ctrl.fieldDefn.data_type === 'Float' && !hasOptions()">
28+
<li ng-if="['Number', 'Range'].includes($ctrl.fieldDefn.input_type) && ['Float', 'Money'].includes($ctrl.fieldDefn.data_type) && !hasOptions()">
2929
<div ng-click="$event.stopPropagation()" class="af-gui-field-select-in-dropdown">
3030
<label>{{:: ts('Decimal places:') }}</label>
3131
<select class="form-control" ng-model="getSet('input_attrs.step')" ng-model-options="{getterSetter: true}" title="{{:: ts('Decimal places') }}">

0 commit comments

Comments
 (0)