Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
This commit is contained in:
commit
49791c2114
@ -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"
|
||||
},
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user