Commit 61043d07 authored by git's avatar git Committed by Daniel Cothran
Browse files

Issue #3282137 by MattiaMaragno, erutan: Chart returning all values as 0 when debug isn't enabled

parent 5a16de98
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -602,9 +602,9 @@ class ChartsPluginStyleChart extends StylePluginBase implements ContainerFactory
    else {
      $value = $this->getField($number, $field);
    }
    if ($this->twig->isDebug()) {

    $value = trim(strip_tags($value));
    }

    if (strpos($field, 'field_charts_fields_scatter') === 0 || strpos($field, 'field_charts_fields_bubble') === 0) {

      return Json::decode($value);