From 7f848fd111de13778e3d88ff6839ed2ccafd46e4 Mon Sep 17 00:00:00 2001 From: bmatt Date: Mon, 11 Sep 2017 14:50:20 +0000 Subject: Fix for VID Service Type drop down IS_SINGLE_OPTION_AUTO_SELECTED was defaulted to true in the parameterBlock directive which was breaking the onChange hook for VID to populate service type. Added a parameter property of isSingleOptionAutoSelected to allow overriding this value on a parameter basis. Issue-ID: VID-54 Change-Id: I74b22c0e97a23c19ceb800af27036919dafb1fea Signed-off-by: bmatt --- .../main/webapp/app/vid/scripts/directives/parameterBlockDirective.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js') diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js b/vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js index b6a360f4..69a0ae52 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js @@ -247,7 +247,7 @@ var parameterBlockDirective = function($log, PARAMETER, UtilityService) { } if (UtilityService.hasContents(parameter.prompt)) { - if (!(IS_SINGLE_OPTION_AUTO_SELECTED && parameter.optionList.length === 1)) { + if (!(IS_SINGLE_OPTION_AUTO_SELECTED && parameter.optionList.length === 1) || !(parameter.isSingleOptionAutoSelected && parameter.optionList.length === 1)) { html += ""; } } -- cgit 1.2.3-korg