You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by sc...@apache.org on 2019/08/30 17:54:14 UTC

[nifi] 07/09: NIFI-6290: - Ensuring the first allowable value is selected.

This is an automated email from the ASF dual-hosted git repository.

scottyaslan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nifi.git

commit f318a8c68524a268b819b1faa1b37f3f9e3190a4
Author: Matt Gilman <ma...@gmail.com>
AuthorDate: Tue Aug 27 15:12:05 2019 -0400

    NIFI-6290:
    - Ensuring the first allowable value is selected.
---
 .../src/main/webapp/js/jquery/propertytable/jquery.propertytable.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.js
index 9ab4d6b..39334ac 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.js
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.js
@@ -723,7 +723,13 @@
                         } else {
                             parameterCombo.combo('setSelectedOption', initialOption);
                         }
+                    } else {
+                        // select the first option
+                        allowableValuesCombo.combo('setSelectedOption', allowableValueOptions[0]);
                     }
+                } else {
+                    // select the first option
+                    allowableValuesCombo.combo('setSelectedOption', allowableValueOptions[0]);
                 }
             };