You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the code, there seems to be an error in /classes/privacy/provider.php at line 366. An SQL query is executed on table 'hotquestion_votes' which references field 'userid'. But this table contains no such field. The field for the user id in this table is apparently called 'voter'.
The SQL query at line 366 should be modified accordingly (note that tables 'hotquestion_questions' and 'hotquestion_grades' do have a field 'userid', which is used correctly at line 368 in the same file).
Edit : lines 407-409 also contain invalid field names from table 'hotquestion_votes'. They use 'userid' and 'itemid', which both don't exist in the table.
The text was updated successfully, but these errors were encountered:
I have been trying to find the time to go back through the provider.php file for quite some time now, but have been too busy with other things, and I have also been sick a lot this year, especially had a lot of problems with my eyes.
I see the error you pointed out and it looks like probably the same type of error in line 408. I think I also forgot to see if there is anything I need to do to handle any comments made by a user on some question. I will have to dig back through my ticket system and see what I can find out.
I will try to work on this file as much as I can, but it might take a couple of days. My eyes started bothering me again yesterday, but hopefully I detected it early enough and started treatment so that maybe I will not have to spend any days sitting in a darkened room doing nothing.
Just pushed changes in provider.php lines 366 and 408 to the master branch. I have only had time to test for personal data export so far which looked okay. Have not tested for a delete request just yet. I need to add some more student data to my new test site, and will not get to that until tomorrow.
When a user is deleted from Moodle, a data deletion request is created. And when this request is processed by the cron job, an error is raised :
Looking at the code, there seems to be an error in /classes/privacy/provider.php at line 366. An SQL query is executed on table 'hotquestion_votes' which references field 'userid'. But this table contains no such field. The field for the user id in this table is apparently called 'voter'.
The SQL query at line 366 should be modified accordingly (note that tables 'hotquestion_questions' and 'hotquestion_grades' do have a field 'userid', which is used correctly at line 368 in the same file).
Edit : lines 407-409 also contain invalid field names from table 'hotquestion_votes'. They use 'userid' and 'itemid', which both don't exist in the table.
The text was updated successfully, but these errors were encountered: