diff options
author | Ben Burgess <88810029+bx80@users.noreply.github.com> | 2022-06-15 16:17:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 16:17:22 +0300 |
commit | 1554431e5d557153417763a039d6b033e300d3df (patch) | |
tree | d94cd00750fd00b36f75d9ba3a9cff2591ac4b77 /core | |
parent | 494533f8d46f2d33c73b03178458a0665b238762 (diff) |
Fix for zero average order value on charts (#19353)
* Changed evolution jqplot charts to not format metrics, added basic percent formatting for the jqplotDataGenerator
* Only show dollar and pound currency symbols as postfix for jqplot formatting
* Do not attempt to format jqplot percent values unless format_metrics = 0, UI test screenshot update
* Improve jqplot formatting, remove unnecessary format metrics default logic
* Revert format metrics default logic removal
Diffstat (limited to 'core')
-rw-r--r-- | core/API/Request.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/API/Request.php b/core/API/Request.php index 976c4b1b7b..e06f8874a4 100644 --- a/core/API/Request.php +++ b/core/API/Request.php @@ -105,7 +105,8 @@ class Request $defaultRequest['segment'] = $requestRaw['segment']; } - if (!isset($defaultRequest['format_metrics'])) { + // Only default to formatting metrics if the request doesn't already contain the format metrics parameter + if (!isset($defaultRequest['format_metrics']) && !isset($request['format_metrics'])) { $defaultRequest['format_metrics'] = 'bc'; } } |