Bug #18640
closedEM considers 0.8.0 to be have a higher number than 1.0.0
0%
Description
This bug concerns the sorting of version numbers and the update function.
A) Sorting of version numbers:
1. In the EM, select "Import".
2. Enter ameos_formidable.
3. In the search result, click on the extension title.
4. Next to "Load details", open the drop-down list with the version numbers.
Expected result:
...
0.7.0
0.8.0
1.0.0
Actual result:
0.7.0
1.0.0
0.8.0
B) the update mechanism
1. Install ameos_formidable 0.7.0.
2. In the EM, select "Check for extension updated".
Expected result:
The updater offers to update ameos_formidable to the latest version 1.0.0.
Actual result:
The updater offers to update ameos_formidable to the no-latest version 0.8.0.
When ameos_formidable 0.8.0 is installed, the updater show ameos to be up-to-date.
Interestingly, when you use import_extensions with 0.8.0 installed, the result list will show you the green "update" icon, allowing you to upgrade from 0.8.0 to 1.0.0.
(issue imported from #M8158)
Files
Updated by Rob Vonk over 16 years ago
Reproducable.
Fix is to change line 101 from typo3/mod/tools/em/class.em_xmlhandler.php from
$order = $forder.', title';
to
$order = $forder.', title,version';
The updates list is also correct now.
Updated by Oliver Klee over 16 years ago
Rob, this helps with the ameos_formidable case, but doesn't work for two-digit numbers. In this case, the "seminars" extension will have the following order:
0.4.0
0.4.1
0.4.11
0.4.12
0.4.2
0.4.3
...
Updated by Marcus Krause almost 16 years ago
Is there nobody interested in providing a Core patch?