mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
Merge branch 'MDL-75312' of https://github.com/paulholden/moodle
This commit is contained in:
commit
996b5c7d75
@ -303,7 +303,7 @@ class random_question_loader {
|
||||
FROM {question} q
|
||||
JOIN {question_versions} qv ON qv.questionid = q.id
|
||||
JOIN {question_bank_entries} qbe ON qbe.id = qv.questionbankentryid
|
||||
{$condition}) q";
|
||||
{$condition}) q ORDER BY q.id";
|
||||
|
||||
return $DB->get_records_sql($sql, $param, $offset, $limit);
|
||||
} else {
|
||||
|
@ -14,16 +14,6 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Question external functions tests.
|
||||
*
|
||||
* @package core_question
|
||||
* @category external
|
||||
* @copyright 2016 Pau Ferrer <pau@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @since Moodle 3.1
|
||||
*/
|
||||
|
||||
namespace core_question;
|
||||
|
||||
use core_question_external;
|
||||
@ -40,6 +30,7 @@ require_once($CFG->dirroot . '/question/engine/tests/helpers.php');
|
||||
* Question external functions tests
|
||||
*
|
||||
* @package core_question
|
||||
* @covers \core_question_external
|
||||
* @category external
|
||||
* @copyright 2016 Pau Ferrer <pau@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
Loading…
x
Reference in New Issue
Block a user