bd-R / bdclean

User-friendly data cleaning pipeline for the inexperienced R user

Home Page:https://bd-r.github.io/bdclean-guide/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The questionnaire is not really resetting itself

tom-gu opened this issue · comments

After answering the questionnaire >> Flagging >> returning to the questionnaire and changing the answers >> some input from the first of the questionnaire session still exist.
A simple example:

Fresh bdclean session>> answering the questionnaire:
image

Performing flagging:
image

Results:
image

Now, changing the questionnaire to:
image

Results aren't changing as they should:
image

For more details see QA working file:
https://docs.google.com/spreadsheets/d/1VFhHy6uo7qVBiHhcuLqUJ3RXKpaG-4C3RD0jqvB0xtU/edit#gid=21537633&range=11:11

This is caused because BDQuestion reference class wasnt resetting when questionnaire is changed. The old values still remained. This is fixed now