From 78735a39593b3b044be69dc42e2586c5ed396b4c Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Sun, 22 Mar 2020 16:13:16 -0500 Subject: [PATCH] Minor - MigrationMoodle: Fix order in queries - refs BT#15992 --- plugin/migrationmoodle/src/Loader/SortSectionModuleLoader.php | 4 +--- plugin/migrationmoodle/src/Loader/UsersScormsViewLoader.php | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/plugin/migrationmoodle/src/Loader/SortSectionModuleLoader.php b/plugin/migrationmoodle/src/Loader/SortSectionModuleLoader.php index 2418e58d41..60f49254f8 100644 --- a/plugin/migrationmoodle/src/Loader/SortSectionModuleLoader.php +++ b/plugin/migrationmoodle/src/Loader/SortSectionModuleLoader.php @@ -30,9 +30,7 @@ class SortSectionModuleLoader implements LoaderInterface TOOL_DOCUMENT, ], ], - 'order' => [ - 'iid' => 'ASC', - ], + 'order' => 'iid ASC', ], 'first' ); diff --git a/plugin/migrationmoodle/src/Loader/UsersScormsViewLoader.php b/plugin/migrationmoodle/src/Loader/UsersScormsViewLoader.php index 53360d82c2..a0ea6ecd54 100644 --- a/plugin/migrationmoodle/src/Loader/UsersScormsViewLoader.php +++ b/plugin/migrationmoodle/src/Loader/UsersScormsViewLoader.php @@ -110,9 +110,7 @@ class UsersScormsViewLoader implements LoaderInterface $sessionId, ], ], - 'order' => [ - 'view_count' => 'DESC', - ], + 'order' => 'view_count DESC', ], 'first' );