Merge branch 'QA_5_2'

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
This commit is contained in:
Maurício Meneghini Fauth 2026-03-13 16:21:03 -03:00
commit 49791c2114
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@
],
"update:baselines": [
"@php phpstan analyse --generate-baseline",
"@php psalm --set-baseline=psalm-baseline.xml"
"@php psalm --no-cache --threads=max --set-baseline=psalm-baseline.xml"
],
"twig-lint": "@php bin/console lint:twig --ansi --show-deprecations"
},

View File

@ -1138,7 +1138,7 @@ class Table implements Stringable
// Remove some old rows in table_uiprefs if it exceeds the configured
// maximum rows
$sqlQuery = 'SELECT COUNT(*) FROM ' . $table;
$rowsCount = (int) $this->dbi->fetchValue($sqlQuery);
$rowsCount = (int) $this->dbi->fetchValue($sqlQuery, 0, ConnectionType::ControlUser);
$maxRows = $config->selectedServer['MaxTableUiprefs'];
if ($rowsCount > $maxRows) {
$numRowsToDelete = $rowsCount - $maxRows;