Commit 9b4c17eb9a702da807a74265582c346efd0c545d
1 parent
22a6206a
Exists in
master
and in
66 other branches
Add id for plot result
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php
@@ -284,11 +284,12 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass | @@ -284,11 +284,12 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass | ||
284 | case ProcessStatusEnumClass::DONE : | 284 | case ProcessStatusEnumClass::DONE : |
285 | 285 | ||
286 | $result = array(); | 286 | $result = array(); |
287 | - foreach ($data->getWaitingResults() as $waitingResult) | 287 | + foreach ($data->getWaitingResults() as $key => $waitingResult) |
288 | { | 288 | { |
289 | $contextResult = str_replace(".png","_context.xml",$waitingResult); | 289 | $contextResult = str_replace(".png","_context.xml",$waitingResult); |
290 | 290 | ||
291 | $result[] = array( | 291 | $result[] = array( |
292 | + "id" => $key, | ||
292 | "context" => IHMPlotContextFileClass::parse($this->getWorkingPath().$contextResult), | 293 | "context" => IHMPlotContextFileClass::parse($this->getWorkingPath().$contextResult), |
293 | "plot" => $waitingResult | 294 | "plot" => $waitingResult |
294 | ); | 295 | ); |