Fix #16896 - Distinct URLs are broken on nullable text fields

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-06-22 00:04:26 +02:00
parent 7ae7a83935
commit 6549c11361
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -2950,7 +2950,9 @@ class Results
// even for a string type
// for decimal numeric is returning 1
// have to improve logic
if (($meta->numeric == 1 && $meta->type !== 'string') || $meta->type === 'real') {
// Nullable text fields and text fields have the blob flag (issue 16896)
$isNumericAndNotBlob = $meta->numeric == 1 && $meta->blob == 0;
if (($isNumericAndNotBlob && $meta->type !== 'string') || $meta->type === 'real') {
// n u m e r i c
$display_params['data'][$row_no][$i]