Skip to content
Extraits de code Groupes Projets
Valider 4f1e68ea rédigé par diosmosis's avatar diosmosis
Parcourir les fichiers

Make sure RowEvolution uses graphEvolution default and make sure this default...

Make sure RowEvolution uses graphEvolution default and make sure this default is saved correctly in client side parameter instead of being overwritten by saved viewDataTable.
parent e7c9010b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -125,6 +125,8 @@ class Factory ...@@ -125,6 +125,8 @@ class Factory
$type = $defaultType ? : HtmlTable::ID; $type = $defaultType ? : HtmlTable::ID;
} }
$params['viewDataTable'] = $type;
$visualizations = Manager::getAvailableViewDataTables(); $visualizations = Manager::getAvailableViewDataTables();
if (array_key_exists($type, $visualizations)) { if (array_key_exists($type, $visualizations)) {
......
...@@ -81,7 +81,7 @@ class RowEvolution ...@@ -81,7 +81,7 @@ class RowEvolution
* @param null|string $graphType * @param null|string $graphType
* @throws Exception * @throws Exception
*/ */
public function __construct($idSite, $date, $graphType = null) public function __construct($idSite, $date, $graphType = 'graphEvolution')
{ {
$this->apiMethod = Common::getRequestVar('apiMethod', '', 'string'); $this->apiMethod = Common::getRequestVar('apiMethod', '', 'string');
if (empty($this->apiMethod)) throw new Exception("Parameter apiMethod not set."); if (empty($this->apiMethod)) throw new Exception("Parameter apiMethod not set.");
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter