fixed default value save for text question in survey

This commit is contained in:
John Mitchell
2015-05-11 10:35:49 -04:00
parent 9dfce90987
commit 4137985dc5

View File

@@ -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;
@@ -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;