mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 03:16:42 +02:00
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:
parent
01c8bab559
commit
7cabd58054
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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)';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue