Merge #18177 - Fix "IS NULL" is shown for non-nullable columns on search page

Pull-request: #18177

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2023-03-10 15:58:02 +01:00
commit ae355d99b1
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -157,7 +157,7 @@ class SearchController extends AbstractController
}
$this->columnTypes[] = $type;
$this->columnNullFlags[] = $row['Null'];
$this->columnNullFlags[] = $row['Null'] === 'YES';
$this->columnCollations[] = ! empty($row['Collation']) && $row['Collation'] !== 'NULL'
? $row['Collation']
: '';