mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
changing MAX to MIN so that there is an item for each datasets MDL-8552 and 6777
could (will) be merged to older versions as this is an old problem
This commit is contained in:
parent
e2dfe8bfca
commit
562dc5fdda
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class question_dataset_dependent_questiontype extends default_questiontype {
|
|||
// Find out how many datasets are available
|
||||
global $CFG;
|
||||
if(!$maxnumber = (int)get_field_sql(
|
||||
"SELECT MAX(a.itemcount)
|
||||
"SELECT MIN(a.itemcount)
|
||||
FROM {$CFG->prefix}question_dataset_definitions a,
|
||||
{$CFG->prefix}question_datasets b
|
||||
WHERE b.question = $question->id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue