From 9b4c17eb9a702da807a74265582c346efd0c545d Mon Sep 17 00:00:00 2001
From: Benjamin Renard <benjamin.renard@akka.eu>
Date: Thu, 13 Aug 2015 09:39:47 +0200
Subject: [PATCH] Add id for plot result

---
 src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php b/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php
index e37bc70..3bfc188 100644
--- a/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php
+++ b/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php
@@ -284,11 +284,12 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass
 			case ProcessStatusEnumClass::DONE :
 				
 				$result = array();
-				foreach ($data->getWaitingResults() as $waitingResult)
+				foreach ($data->getWaitingResults() as $key => $waitingResult)
 				{
 					$contextResult = str_replace(".png","_context.xml",$waitingResult);
 					
 					$result[] = array(
+						"id" => $key,
 						"context" => IHMPlotContextFileClass::parse($this->getWorkingPath().$contextResult),
 						"plot" => $waitingResult
 					);
--
libgit2 0.21.2