From 3c1cb0b7a998e8abd2786ee20a70389595a74d9f Mon Sep 17 00:00:00 2001 From: Sunny Batabyal Date: Mon, 3 Apr 2017 13:24:59 +0530 Subject: [PATCH] Right-align decimal values Fixes #13131 Signed-off-by: Sunny Batabyal --- libraries/DisplayResults.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/DisplayResults.php b/libraries/DisplayResults.php index d9e4c6826b..b028470096 100644 --- a/libraries/DisplayResults.php +++ b/libraries/DisplayResults.php @@ -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]