Commit 419a700bb3da71cf2dbef091eb32970b66a6d1cc
1 parent
a9d86eaa
Exists in
master
and in
55 other branches
Fix TT goto
Showing
1 changed file
with
4 additions
and
20 deletions
Show diff stats
src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php
@@ -1751,28 +1751,12 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass | @@ -1751,28 +1751,12 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass | ||
1751 | 1751 | ||
1752 | private function unmarshallTTGoto($input, $plotInput) | 1752 | private function unmarshallTTGoto($input, $plotInput) |
1753 | { | 1753 | { |
1754 | - //Find current tab | ||
1755 | - $crtTab = NULL; | ||
1756 | - foreach ($plotInput->{'tabs'} as $tab) | ||
1757 | - { | ||
1758 | - if ($input->{'tabId'} == PLOT_RESULT_FILE_KEY."_".$tab->{'id'}) | ||
1759 | - { | ||
1760 | - $crtTab = $tab; | ||
1761 | - break; | ||
1762 | - } | ||
1763 | - } | ||
1764 | - | ||
1765 | - if (!$crtTab) | ||
1766 | - throw new Exception('Cannot retrieve plot tab for navigation action.'); | ||
1767 | - | ||
1768 | - $plotInput->{'last-plotted-tab'} = $crtTab->{'id'}; | ||
1769 | - | ||
1770 | - $crtTab->{'timesrc'} = 'TimeTable'; | ||
1771 | - $crtTab->{'ttFileIndex'} = $input->{'ttFileIndex'}; | ||
1772 | - $crtTab->{'intIndex'} = $input->{'intIndex'}; | 1754 | + $plotInput->{'timesrc'} = 'TimeTable'; |
1755 | + $plotInput->{'ttFileIndex'} = $input->{'ttFileIndex'}; | ||
1756 | + $plotInput->{'intIndex'} = $input->{'intIndex'}; | ||
1773 | 1757 | ||
1774 | $plotInput->{'force-time-zoom-reset'} = true; | 1758 | $plotInput->{'force-time-zoom-reset'} = true; |
1775 | - $this->saveIHMRequest($plotInput); | 1759 | + $this->saveIHMRequest($input->interactiveId, $plotInput); |
1776 | return $plotInput; | 1760 | return $plotInput; |
1777 | } | 1761 | } |
1778 | 1762 |