From 004d20c21447e4263afed4671036cb126682fd2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Borja=20S=C3=A1nchez?= <114572427+BorjaSanchezBeezNest@users.noreply.github.com> Date: Mon, 23 Jan 2023 18:31:41 +0100 Subject: [PATCH] Learnpath: Fix exercises preview, edit or delete view with exercises and categories Author: @BorjaSanchezBeezNest --- public/main/lp/learnpath.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/main/lp/learnpath.class.php b/public/main/lp/learnpath.class.php index 23ea7f082d..b524fddcb4 100644 --- a/public/main/lp/learnpath.class.php +++ b/public/main/lp/learnpath.class.php @@ -7839,7 +7839,7 @@ class learnpath // Get the lp_item_view with the highest view_count. $learnpathItemViewResult = $em - ->getRepository('ChamiloCourseBundle:CLpItemView') + ->getRepository(CLpItemView::class) ->findBy( ['item' => $rowItem->getIid(), 'view' => $lpViewId], ['viewCount' => 'DESC'],