From 854ad953b75f91b81fb70a4919d609bd76b4514b Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 15 Sep 2015 13:03:52 +0200 Subject: [PATCH] Change prefix of interactive plots + Set last plotted tab during a TT Goto action --- 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 f7eb3ba..dbedd78 100644 --- a/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php +++ b/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php @@ -130,7 +130,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass $plotOutputNode->setStructure(RequestOutputPlotStructureEnum::ONE_FILE); //prefix - $filePrefix = "plot"; + $filePrefix = "plot_"; if ($input->{'file-prefix'} && ($input->{'file-prefix'} != "")) $filePrefix = $input->{'file-prefix'}; $filePrefix .= $tab->{'id'}; @@ -1610,6 +1610,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass if (!$crtTab) throw new Exception('Cannot retrieve plot tab for navigation action.'); + $plotInput->{'last-plotted-tab'} = $crtTab->{'id'}; $crtTab->{'ttFileIndex'} = $input->{'ttFileIndex'}; $crtTab->{'intIndex'} = $input->{'intIndex'}; -- libgit2 0.21.2