Fix 4 question single answer chart and widget
Closes #701 Bugs found:
-
create therapy follow-up with a 4 question answer -> transfer to pat -> answer the question for today and DONT ADD NOTE -> widget does not show in statistics - FIXED -
After doing the above: when going back to daily questions the answer is not shown anymore. -> going back to statistics the answer has vanished. going back to daily questions and reload with cache clearing (ctrl + f5) the answer reapperas and is also shown in statistics
Notes:
- The first bug was fixed by always providing
notes
- even if they are empty. Otherwise there was an assertion error. See first commit - The second bug was fixed by not changing the options of the question when creating the options to show the chart. (see commit 3,4 and 6)
- commits 2 and 5 are linting issues
Edited by Carlos Sanchez