Commit 854ad953b75f91b81fb70a4919d609bd76b4514b

Authored by Benjamin Renard
1 parent 516495e8

Change prefix of interactive plots + Set last plotted tab during a TT Goto action

src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php
... ... @@ -130,7 +130,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass
130 130 $plotOutputNode->setStructure(RequestOutputPlotStructureEnum::ONE_FILE);
131 131  
132 132 //prefix
133   - $filePrefix = "plot";
  133 + $filePrefix = "plot_";
134 134 if ($input->{'file-prefix'} && ($input->{'file-prefix'} != ""))
135 135 $filePrefix = $input->{'file-prefix'};
136 136 $filePrefix .= $tab->{'id'};
... ... @@ -1610,6 +1610,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass
1610 1610 if (!$crtTab)
1611 1611 throw new Exception('Cannot retrieve plot tab for navigation action.');
1612 1612  
  1613 + $plotInput->{'last-plotted-tab'} = $crtTab->{'id'};
1613 1614 $crtTab->{'ttFileIndex'} = $input->{'ttFileIndex'};
1614 1615 $crtTab->{'intIndex'} = $input->{'intIndex'};
1615 1616  
... ...