ordering_sentences: Unable to change multiple dataset
Closed, ResolvedPublic

Description

In ordering_sentences (not the other two ordering activities), when updating datasets within the activity, I get the following error:
qrc:/gcompris/src/activities/ordering_numbers/ordering.js:35: TypeError: Cannot call method 'split' of undefined

This is due to the fact that the items.levels are updated in line 43.

There are two points to fix:

  • This object should not be updated (I'll make a commit on all the activities to mark them readonly)
  • We should be able to switch between datasets.
jjazeix created this task.Mar 26 2022, 9:14 PM

@hadron if you think you will have time, feel free to take a look at it, you'll probably find a cleaner quicker solution than me :). If you don't have time, please tell so another person can take a look at it

hadron claimed this task.Mar 27 2022, 7:14 AM

I'll have a look.

hadron closed this task as Resolved.Mar 27 2022, 9:12 AM
hadron moved this task from Need review to Done on the GCompris: Bugs board.