From 537f6a5c49adabc31f94b6e4b9af860fee1e429e Mon Sep 17 00:00:00 2001 From: Paolo Date: Thu, 29 Mar 2018 14:44:23 +0200 Subject: [PATCH] Added order by version DESC in method loadVorlagetext of VorlageLib --- application/libraries/VorlageLib.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/libraries/VorlageLib.php b/application/libraries/VorlageLib.php index 7ea3de93d..ea96f3e18 100644 --- a/application/libraries/VorlageLib.php +++ b/application/libraries/VorlageLib.php @@ -114,6 +114,8 @@ class VorlageLib $queryParameters["sprache"] = $sprache; } + $this->ci->VorlageStudiengangModel->addOrder('version', 'DESC'); + $vorlage = $this->ci->VorlageStudiengangModel->loadWhere($queryParameters); // If the searched template was not found if (!hasData($vorlage))