From 89d804a127e8f1f7998c2e84f28700f2799213dd Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 25 Nov 2016 13:06:40 +0100 Subject: [PATCH] Ajout du sujet aux exports `download/multiple` et `download/chart` --- build/api/module/download.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build/api/module/download.php b/build/api/module/download.php index d9ea6e6..61216c7 100644 --- a/build/api/module/download.php +++ b/build/api/module/download.php @@ -223,6 +223,12 @@ } + // On ajoute le sujet à la liste des contacts + $output['contacts.mini'] .= self::parseCSV([[ + 'id' => $subid, + 'name' => $subject['subject']['name'] + ]], [], strlen($output['contacts.mini']) == 0); + /* (4) Si aucune relation -> suivant */ if( !isset($subject['relations']) || !is_array($subject['relations']) ) continue; @@ -392,6 +398,12 @@ } + // On ajoute le sujet à la liste des contacts + $output['gephi.nodes'] .= self::parseCSV([[ + 'id' => $subid, + 'name' => $subject['subject']['name'] + ]], [], strlen($output['gephi.nodes']) == 0); + /* (4) Si aucune relation -> suivant */ if( !isset($subject['relations']) || !is_array($subject['relations']) ) continue;