Bug #22378
closed"Check for extension updates" does not always find latest version
0%
Description
The "Check for extension updates" in the Extension Manager does not always find the latest version due to a bad expectation of the sort order.
In SC_mod_tools_em_index->showExtensionsToUpdate() we get a list of versions for a particular extension and the latest version is assumed to be the last entry in the versions array. This array is not necessarily sorted by version number however, so a simple natsort() will make sure that it is.
To duplicate the issue, ensure that you're on a TemplaVoila version prior to the 1.4.2 release. When you "Check for extension updates", you'll see 1.4.1 as the latest version. Searching for templavoila from the "Import extensions" submodule will reveal 1.4.2 however.
(issue imported from #M14003)
Files
Updated by Jeff Segars over 14 years ago
Committed to 4.2 (r7243), 4.3 (r7244), and trunk (r7245).