Skip to content

Commit

Permalink
Merge branch 'MDL-75312-400' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
…into MOODLE_400_STABLE
  • Loading branch information
sarjona committed Aug 17, 2022
2 parents e9a7520 + c83345a commit d5c66fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion question/classes/local/bank/random_question_loader.php
Expand Up @@ -303,7 +303,7 @@ public function get_questions($categoryid, $includesubcategories, $tagids = [],
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 {
Expand Down
11 changes: 1 addition & 10 deletions question/tests/externallib_test.php
Expand Up @@ -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;
Expand All @@ -40,6 +30,7 @@
* 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
Expand Down

0 comments on commit d5c66fa

Please sign in to comment.