Plugin: AI Helper: Fix wrong order of items in learning path - refs #4604

pull/4614/head
Francis Gonzales 3 years ago committed by GitHub
parent 3748da213f
commit f9d7be71d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      plugin/ai_helper/tool/learnpath.php

@ -52,6 +52,7 @@ switch ($apiName) {
// Create the learnpath and return the id generated.
$return = ['success' => false, 'lp_id' => 0];
if (!empty($lpItems)) {
krsort($lpItems);
$lpId = learnpath::add_lp(
$courseCode,
$topic,

Loading…
Cancel
Save