diff --git a/main/lp/learnpath.class.php b/main/lp/learnpath.class.php index 1e0b04182e..a85eef293f 100755 --- a/main/lp/learnpath.class.php +++ b/main/lp/learnpath.class.php @@ -11161,6 +11161,8 @@ EOD; $lpItemId = []; $typeListNotToVerify = self::getChapterTypes(); + + // Using get_toc() function instead $this->items because returns the correct order of the items foreach ($this->get_toc() as $item) { if (!in_array($item['type'], $typeListNotToVerify)) { $lpItemId[] = $item['id'];