Skip to content
Extraits de code Groupes Projets
Valider ca8df955 rédigé par Thomas Steur's avatar Thomas Steur
Parcourir les fichiers

do not send variables to client having value false

parent 8f3742d4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -445,12 +445,18 @@ class Visualization extends ViewDataTable ...@@ -445,12 +445,18 @@ class Visualization extends ViewDataTable
continue; continue;
} }
$valueToConvert = false;
if (property_exists($this->requestConfig, $name)) { if (property_exists($this->requestConfig, $name)) {
$javascriptVariablesToSet[$name] = $this->convertForJson($this->requestConfig->$name); $valueToConvert = $this->requestConfig->$name;
} else if (property_exists($this->config, $name)) { } else if (property_exists($this->config, $name)) {
$javascriptVariablesToSet[$name] = $this->convertForJson($this->config->$name); $valueToConvert = $this->config->$name;
} else if (property_exists($this, $name)) { } else if (property_exists($this, $name)) {
$javascriptVariablesToSet[$name] = $this->convertForJson($this->$name); $valueToConvert = $this->$name;
}
if (false !== $valueToConvert) {
$javascriptVariablesToSet[$name] = $this->convertForJson($valueToConvert);
} }
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter