mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 20:00:43 -03:30
Survey maker/taker issue with int/floats = 0
fixed a defect with the survey maker/taker where floats/ints equal to zero weren't being displayed the entire way through
This commit is contained in:
parent
d2a4f2a190
commit
e5ba0ce8bc
@ -38,7 +38,7 @@ angular.module('JobSubmissionHelper', [ 'RestServices', 'Utilities', 'Credential
|
||||
}
|
||||
if(scope.survey_enabled===true){
|
||||
for (fld in scope.job_launch_form){
|
||||
if(scope[fld]){
|
||||
if(scope[fld] || scope[fld] === 0){
|
||||
job_launch_data[fld] = scope[fld];
|
||||
}
|
||||
}
|
||||
@ -462,8 +462,12 @@ function($location, Wait, GetBasePath, LookUpInit, JobTemplateForm, CredentialLi
|
||||
html += '<div class="survey_taker_description"><i>'+question.question_description+'</i></div>\n';
|
||||
}
|
||||
|
||||
question.default = (question.default) ? question.default.replace(/</g, "<") : undefined;
|
||||
question.default = (question.default) ? question.default.replace(/>/g, ">") : undefined;
|
||||
// if(question.default && question.default.indexOf('<') !== -1){
|
||||
// question.default = (question.default) ? question.default.replace(/</g, "<") : undefined;
|
||||
// }
|
||||
// if (question.default && question.default.indexOf('>') !== -1){
|
||||
// question.default = (question.default) ? question.default.replace(/>/g, ">") : undefined;
|
||||
// }
|
||||
scope[question.variable] = question.default;
|
||||
|
||||
if(question.type === 'text' ){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user