Project

General

Profile

Actions

Bug #39056

closed

Tagging of latest extension not possible due to

Added by Jan Schreier over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Won't have this time
Assignee:
-
Category:
Extension Manager
Target version:
-
Start date:
2012-07-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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'


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #38406: Extension Import not working with postgresql and DBALClosed2012-06-26

Actions
Actions

Also available in: Atom PDF