MDL-79863 qtype_ordering: qtype/ordering fix indexing of items when "Item selection type" is "Select a contiguous subset of items". The incorrect indexing resulted in less than the exptected number of items being displayed.

This commit is contained in:
Gordon Bateson 2018-11-26 10:13:24 +09:00 committed by Mathew May
parent 01c8bab559
commit 7cabd58054
2 changed files with 3 additions and 3 deletions

View file

@ -146,7 +146,7 @@ class qtype_ordering_question extends question_graded_automatically {
case self::SELECT_CONTIGUOUS:
$answerids = array_keys($answers);
$offset = mt_rand(0, $countanswers - $selectcount);
$answerids = array_slice($answerids, $offset, $selectcount, true);
$answerids = array_slice($answerids, $offset, $selectcount);
break;
}

View file

@ -29,5 +29,5 @@ $plugin->cron = 0;
$plugin->component = 'qtype_ordering';
$plugin->maturity = MATURITY_STABLE;
$plugin->requires = 2010112400; // Moodle 2.0
$plugin->version = 2018111973;
$plugin->release = '2018-11-19 (73)';
$plugin->version = 2018112674;
$plugin->release = '2018-11-26 (74)';