Skip to content

Commit

Permalink
fix questions items prefilled
Browse files Browse the repository at this point in the history
  • Loading branch information
blabla1337 committed Jun 28, 2019
1 parent e45987b commit af0a3cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Expand Up @@ -191,10 +191,9 @@ <h4>Configure this sprint</h4>
<td>
<select ngModel name="answer{{i +1}}" id="answer{{i +1}}"
class="form-control">
<option selected value="">Select a value</option>
<option value="0">No</option>
<option selected value="">No</option>
<option value="{{question.id}}">Yes</option>
<option value="0">N.A.</option>
<option value="0">Not Applicable</option>
</select>
</td>
</tr>
Expand Down
Expand Up @@ -96,12 +96,6 @@ export class ProjectDashboardComponent implements OnInit {
}

for (let i = 1; i < count_sprint + 1; i++) {
if (sprint_items['answer' + i] == '0') {
this.sprintStore.push({ 'projectID': Number(this.idFromURL), 'question_ID': Number(sprint_items['answer' + i]), 'result': 'False', 'sprintID': Number(this.sprintID), 'checklist_type': Number(this.checklistTypeID) });
}
if (sprint_items['sanswer' + i] == '') {
this.sprintStore.push({ 'projectID': Number(this.idFromURL), 'question_ID': Number(sprint_items['answer' + i]), 'result': 'False', 'sprintID': Number(this.sprintID), 'checklist_type': Number(this.checklistTypeID) });
}
if (sprint_items['answer' + i] != '0') {
this.sprintStore.push({ 'projectID': Number(this.idFromURL), 'sprintID': Number(this.sprintID), 'question_ID': Number(sprint_items['answer' + i]), 'result': 'True', 'checklist_type': Number(this.checklistTypeID) });
}
Expand Down

0 comments on commit af0a3cb

Please sign in to comment.