Closed koenr closed 1 day ago
thank you for reporting this. We have taken the issue in our Backlog and will try to resolve it soon
We are using DB->get_field() function here and we have cardposition as the field to return. We are sending the card's and the user's id as parameter. One user cannot have 2 cardposition values for a card so it is unique. I am not able to replicate the situation and neither getting warnings. It will be very helpful if you could provide details of the scenario in your instance.
I close this as can't reproduce. I can't reproduce it anymore either. May be something was wrong with one specific cardbox - I can(t remember and I can't find any notes about it anymore. Sorry for this. I'll reopen if I com across it again with more info.
On page moodle/mod/cardbox/view.php I get warnings in developer mode: Did you remember to make the first column something unique in your call to get_records? Duplicate value '1' found in column 'cardposition'.
Did you remember to make the first column something unique in your call to get_records? Duplicate value '0' found in column 'cardposition'.
I think it's about the cardbox_progress table. I don't see where this error is coming from. Of course there's more then one card in position 0 and 1