#39056Tagging of latest extension not possible due to
Description
I noticed this and put it as comment into another bug (http://forge.typo3.org/issues/38406#note-1) but think that it is of higher importance, that is why I created this issue:
the problem lies in the function “insertLastVersion” in the file:
”/typo3/sysext/em/classes/database/class.tx_em_database.php“
current code:
$groupedRows = $GLOBALS[‘TYPO3_DB’]->exec_SELECTgetRows(
‘extkey, version, max(intversion) maxintversion’,
‘cache_extensions’,
‘repository=’ . intval($repositoryUid),
‘extkey’
);
the goal is to identify the highest version for each extension and assign this row the value lastversion=1.
so the code should be:
$groupedRows = $GLOBALS[‘TYPO3_DB’]->exec_SELECTgetRows(
‘extkey, max(intversion) as maxintversion’,
‘cache_extensions’,
‘repository=’ . intval($repositoryUid),
‘extkey’
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.