From 4137985dc55a5fd8955f7c73a7e35b603108cc6f Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Mon, 11 May 2015 10:35:49 -0400 Subject: [PATCH] fixed default value save for text question in survey --- awx/ui/static/js/helpers/Survey.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/ui/static/js/helpers/Survey.js b/awx/ui/static/js/helpers/Survey.js index b41b345eba..ab7a922bd0 100644 --- a/awx/ui/static/js/helpers/Survey.js +++ b/awx/ui/static/js/helpers/Survey.js @@ -464,7 +464,7 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper', if( question.type === 'text'){ scope.text_min = question.min; scope.text_max = question.max; - // scope.default_text = question.default; + scope.default_text = question.default; } if( question.type === 'textarea'){ scope.textarea_min = question.min; @@ -758,7 +758,7 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper', scope.default_float = ""; scope.default_int = ""; scope.default_textarea = ""; - scope.default_password = "" ; + scope.default_password = "" ; scope.choices = ""; scope.text_min = ""; scope.text_max = "" ; @@ -924,7 +924,7 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper', } //set the data.default depending on which type - if (scope.type.type === 'default') { + if (scope.type.type === 'text') { data.default = scope.default; } else if (scope.type.type === 'textarea') { data.default = scope.default_textarea;