Right-align decimal values

Fixes #13131

Signed-off-by: Sunny Batabyal <batabyalsunny@gmail.com>
This commit is contained in:
Sunny Batabyal 2017-04-03 13:24:59 +05:30 committed by Michal Čihař
parent 37b87d7d44
commit 3c1cb0b7a9

View File

@ -3177,7 +3177,9 @@ class DisplayResults
// in some situations (issue 11406), numeric returns 1
// even for a string type
if ($meta->numeric == 1 && $meta->type != 'string') {
// for decimal numeric is returning 1
// have to improve logic
if (($meta->numeric == 1 && $meta->type != 'string') || $meta->type == 'real') {
// n u m e r i c
$display_params['data'][$row_no][$i]