diff --git a/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php b/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php index 3240618..734a5c0 100644 --- a/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php +++ b/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php @@ -1751,28 +1751,12 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass private function unmarshallTTGoto($input, $plotInput) { - //Find current tab - $crtTab = NULL; - foreach ($plotInput->{'tabs'} as $tab) - { - if ($input->{'tabId'} == PLOT_RESULT_FILE_KEY."_".$tab->{'id'}) - { - $crtTab = $tab; - break; - } - } - - if (!$crtTab) - throw new Exception('Cannot retrieve plot tab for navigation action.'); - - $plotInput->{'last-plotted-tab'} = $crtTab->{'id'}; - - $crtTab->{'timesrc'} = 'TimeTable'; - $crtTab->{'ttFileIndex'} = $input->{'ttFileIndex'}; - $crtTab->{'intIndex'} = $input->{'intIndex'}; + $plotInput->{'timesrc'} = 'TimeTable'; + $plotInput->{'ttFileIndex'} = $input->{'ttFileIndex'}; + $plotInput->{'intIndex'} = $input->{'intIndex'}; $plotInput->{'force-time-zoom-reset'} = true; - $this->saveIHMRequest($plotInput); + $this->saveIHMRequest($input->interactiveId, $plotInput); return $plotInput; } -- libgit2 0.21.2