Skip to content

Commit c41022f

Browse files
author
Marius Burkard
committed
- fix version sorting in APS installer
1 parent 522f2bd commit c41022f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/aps_guicontroller.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function getNewestPackageID($id)
166166
FROM aps_packages
167167
WHERE name = (SELECT name FROM aps_packages WHERE id = ?)
168168
AND package_status = 2
169-
ORDER BY REPLACE(version, '.', '')+0 DESC, `release` DESC", $id);
169+
ORDER BY INET_ATON(SUBSTRING_INDEX(CONCAT(version,'.0.0.0'),'.',4)) DESC, `release` DESC", $id);
170170

171171
if(!empty($result) && ($id != $result['id'])) return $result['id'];
172172

0 commit comments

Comments
 (0)