Closed bboudaoud-nv closed 2 years ago
It is worth mentioning that the current fix uses a nested for loop to find the correct index for the option key bind between the (possibly randomized) dialog options and original question options arrays. Alternatively we could use a table-based lookup for these key binds instead, improving runtime by making question configuration serialization a bit more complicated. This may be worth looking into.
This branch fixes a bug when using
randomOrder
questions withoptionKeys
specified. Previously logged responses were potentially incorrect in this configuration. Now the mapping ofoptions
tooptionKeys
does not change whenrandomOrder = true
is specified in config. Only the presented order of options is changed (the key binds remain the same).Merging this PR closes #356.