Afform - Fix RC regression of missing input types
authorColeman Watts <coleman@civicrm.org>
Mon, 9 May 2022 15:59:15 +0000 (11:59 -0400)
committerColeman Watts <coleman@civicrm.org>
Mon, 9 May 2022 15:59:15 +0000 (11:59 -0400)
This regressed because the client-side variable was renamed as
part of 47332dba8ff22aa6f08d473a0437dc02ca53458d

ext/afform/admin/ang/afGuiEditor/elements/afGuiField.component.js

index f740d3d3f6b9ec903ee02581064b1c515322aeec..0102c32e9bf1dd73e46337d8b9ffdea47a84d7a3 100644 (file)
@@ -31,7 +31,7 @@
       this.$onInit = function() {
         ctrl.hasDefaultValue = !!getSet('afform_default');
         ctrl.fieldDefn = angular.extend({}, ctrl.getDefn(), ctrl.node.defn);
-        ctrl.inputTypes = _.transform(_.cloneDeep(afGui.meta.inputType), function(inputTypes, type) {
+        ctrl.inputTypes = _.transform(_.cloneDeep(afGui.meta.inputTypes), function(inputTypes, type) {
           if (inputTypeCanBe(type.name)) {
             // Change labels for EntityRef fields
             if (ctrl.getDefn().input_type === 'EntityRef') {