Closed MartijnR closed 6 years ago
The values are correctly stored in the model (as 1 Standing, 2 Sitting, 3 Lying) but shown incorrectly to user (as 3 Lying, 3 Lying, 3 Lying).
A very interesting bug!
The issue is in the relevant.js module enable
override. This function bypasses the isRelevant check. Don't remember why.
Looks like the bug is in calculate.js in Enketo Core when the update function is called with a relevantPath
only, and that relevantPath is a repeat.
There is actually a way to show this bug in Enketo Core without engine modifications.
see Paul's email on 8/24.
Looks like position(..) is not working correctly perhaps