Commit 854ad953b75f91b81fb70a4919d609bd76b4514b
1 parent
516495e8
Exists in
master
and in
66 other branches
Change prefix of interactive plots + Set last plotted tab during a TT Goto action
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php
@@ -130,7 +130,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass | @@ -130,7 +130,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass | ||
130 | $plotOutputNode->setStructure(RequestOutputPlotStructureEnum::ONE_FILE); | 130 | $plotOutputNode->setStructure(RequestOutputPlotStructureEnum::ONE_FILE); |
131 | 131 | ||
132 | //prefix | 132 | //prefix |
133 | - $filePrefix = "plot"; | 133 | + $filePrefix = "plot_"; |
134 | if ($input->{'file-prefix'} && ($input->{'file-prefix'} != "")) | 134 | if ($input->{'file-prefix'} && ($input->{'file-prefix'} != "")) |
135 | $filePrefix = $input->{'file-prefix'}; | 135 | $filePrefix = $input->{'file-prefix'}; |
136 | $filePrefix .= $tab->{'id'}; | 136 | $filePrefix .= $tab->{'id'}; |
@@ -1610,6 +1610,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass | @@ -1610,6 +1610,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass | ||
1610 | if (!$crtTab) | 1610 | if (!$crtTab) |
1611 | throw new Exception('Cannot retrieve plot tab for navigation action.'); | 1611 | throw new Exception('Cannot retrieve plot tab for navigation action.'); |
1612 | 1612 | ||
1613 | + $plotInput->{'last-plotted-tab'} = $crtTab->{'id'}; | ||
1613 | $crtTab->{'ttFileIndex'} = $input->{'ttFileIndex'}; | 1614 | $crtTab->{'ttFileIndex'} = $input->{'ttFileIndex'}; |
1614 | $crtTab->{'intIndex'} = $input->{'intIndex'}; | 1615 | $crtTab->{'intIndex'} = $input->{'intIndex'}; |
1615 | 1616 |