Fix calls using $db->listUserProblemsWhere. - #3214
Conversation
With the addition of `version_id` in openwebwork#3179, This DB call now returns the data in the order `[ user_id, set_id, version_id, problem_id, ... ]`. This changed the order of the list by adding `version_id` between the `set_id` and `problem_id`, so everywhere this call was used, the code needed to be updated due to this change.
fd50200 to
3ce34da
Compare
|
Note that there will not be a similar problem with the |
|
Actually, |
|
My comment was more that |
|
I mostly noticed because |
|
I am going to go ahead and break the two review rule with this. This is going to get annoying quickly (at least the next/previous problem button issue), and this is only for develop anyway. |
That is because It should not be the case that |
With the addition of
version_idin #3179, This DB call now returns the data in the order[ user_id, set_id, version_id, problem_id, ... ]. This changed the order of the list by addingversion_idbetween theset_idandproblem_id, so everywhere this call was used, the code needed to be updated due to this change.In looking at this, I noticed that there are a bunch of database calls, such as
getUserProblems,listUserProblems,existUserProblemsthat do not takeversion_idinto account. I'm unsure if those may cause other issues.I noticed this issue with the homework problem page Previous and Next buttons no longer working.