Skip to content
Extraits de code Groupes Projets
Valider f6c967d7 rédigé par mattab's avatar mattab
Parcourir les fichiers

Merge remote-tracking branch 'origin/master'

parents 3d26526d a4b4f899
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -84,6 +84,7 @@ class AnnotationList ...@@ -84,6 +84,7 @@ class AnnotationList
public function add($idSite, $date, $note, $starred = 0) public function add($idSite, $date, $note, $starred = 0)
{ {
$this->checkIdSiteIsLoaded($idSite); $this->checkIdSiteIsLoaded($idSite);
$date = Date::factory($date)->toString('Y-m-d');
$this->annotations[$idSite][] = self::makeAnnotation($date, $note, $starred); $this->annotations[$idSite][] = self::makeAnnotation($date, $note, $starred);
...@@ -132,7 +133,7 @@ class AnnotationList ...@@ -132,7 +133,7 @@ class AnnotationList
$annotation =& $this->annotations[$idSite][$idNote]; $annotation =& $this->annotations[$idSite][$idNote];
if ($date !== null) { if ($date !== null) {
$annotation['date'] = $date; $annotation['date'] = Date::factory($date)->toString('Y-m-d');
} }
if ($note !== null) { if ($note !== null) {
$annotation['note'] = $note; $annotation['note'] = $note;
......
...@@ -116,6 +116,11 @@ class Insight extends Visualization ...@@ -116,6 +116,11 @@ class Insight extends Visualization
return false; return false;
} }
if ($view->requestConfig->apiMethodToRequestDataTable
&& 0 === strpos($view->requestConfig->apiMethodToRequestDataTable, 'DBStats')) {
return false;
}
return parent::canDisplayViewDataTable($view); return parent::canDisplayViewDataTable($view);
} }
} }
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