mirror of
https://github.com/ansible/awx.git
synced 2026-03-27 05:45:02 -02:30
fixed default value save for text question in survey
This commit is contained in:
@@ -464,7 +464,7 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper',
|
|||||||
if( question.type === 'text'){
|
if( question.type === 'text'){
|
||||||
scope.text_min = question.min;
|
scope.text_min = question.min;
|
||||||
scope.text_max = question.max;
|
scope.text_max = question.max;
|
||||||
// scope.default_text = question.default;
|
scope.default_text = question.default;
|
||||||
}
|
}
|
||||||
if( question.type === 'textarea'){
|
if( question.type === 'textarea'){
|
||||||
scope.textarea_min = question.min;
|
scope.textarea_min = question.min;
|
||||||
@@ -758,7 +758,7 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper',
|
|||||||
scope.default_float = "";
|
scope.default_float = "";
|
||||||
scope.default_int = "";
|
scope.default_int = "";
|
||||||
scope.default_textarea = "";
|
scope.default_textarea = "";
|
||||||
scope.default_password = "" ;
|
scope.default_password = "" ;
|
||||||
scope.choices = "";
|
scope.choices = "";
|
||||||
scope.text_min = "";
|
scope.text_min = "";
|
||||||
scope.text_max = "" ;
|
scope.text_max = "" ;
|
||||||
@@ -924,7 +924,7 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper',
|
|||||||
}
|
}
|
||||||
|
|
||||||
//set the data.default depending on which type
|
//set the data.default depending on which type
|
||||||
if (scope.type.type === 'default') {
|
if (scope.type.type === 'text') {
|
||||||
data.default = scope.default;
|
data.default = scope.default;
|
||||||
} else if (scope.type.type === 'textarea') {
|
} else if (scope.type.type === 'textarea') {
|
||||||
data.default = scope.default_textarea;
|
data.default = scope.default_textarea;
|
||||||
|
|||||||
Reference in New Issue
Block a user