Commit d6bf6ef5e554f065fc0727fff29ba8dd5ee92160

Authored by Benjamin Renard
1 parent a242857a

Get the possibility to use a TimeTable for an epoch plot request

src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php
@@ -472,9 +472,8 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass @@ -472,9 +472,8 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass
472 break; 472 break;
473 case 'epochPlot' : 473 case 'epochPlot' :
474 $plotNode = $panelNode->addPlotElement(RequestOutputPlotElementTypeEnum::EPOCHPLOT); 474 $plotNode = $panelNode->addPlotElement(RequestOutputPlotElementTypeEnum::EPOCHPLOT);
475 - if ($panelData->{'panel-epoch-centertimeid'} == '')  
476 - throw new Exception('Center Time Id not defined for an Epoch Plot.');  
477 - $plotNode->setCenterTimeId($panelData->{'panel-epoch-centertimeid'}); 475 + if ($panelData->{'panel-epoch-centertimeid'} != '')
  476 + $plotNode->setCenterTimeId($panelData->{'panel-epoch-centertimeid'});
478 break; 477 break;
479 case 'instantPlot' : 478 case 'instantPlot' :
480 $plotNode = $panelNode->addPlotElement(RequestOutputPlotElementTypeEnum::INSTANTPLOT); 479 $plotNode = $panelNode->addPlotElement(RequestOutputPlotElementTypeEnum::INSTANTPLOT);