Skip to content

Commit

Permalink
[BUGFIX] Also fetch outdated extensions in extensionmanager
Browse files Browse the repository at this point in the history
The query for fetching extension versions is extended to
also find "outdated" extension versions (review_state = -2).

Note: For now, this does not change anything in the EM,
since the remote XML does not use the -2 state currently,
due to the wrong constraint. This can however now be
properly fixed in XML.

Resolves: #93082
Releases: main, 12.4, 11.5
Change-Id: I522a2c166c6d1af6e8b2a14de51d63a15c4211d2
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82821
Tested-by: Jochen Roth <rothjochen@gmail.com>
Tested-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Jochen Roth <rothjochen@gmail.com>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
  • Loading branch information
o-ba committed Feb 11, 2024
1 parent b0ce20c commit 7a7efc2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -196,7 +196,7 @@ public function findByTitleOrAuthorNameOrExtensionKey($searchString)
->where(
$queryBuilder->expr()->or(...array_values($searchConstraints)),
$queryBuilder->expr()->eq('current_version', $queryBuilder->createNamedParameter(1, Connection::PARAM_INT)),
$queryBuilder->expr()->gte('review_state', $queryBuilder->createNamedParameter(0, Connection::PARAM_INT))
$queryBuilder->expr()->in('review_state', $queryBuilder->createNamedParameter([0, -2], Connection::PARAM_INT_ARRAY))
)
->orderBy('position', 'DESC')
->executeQuery()
Expand Down

0 comments on commit 7a7efc2

Please sign in to comment.