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 472 break;
473 473 case 'epochPlot' :
474 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 477 break;
479 478 case 'instantPlot' :
480 479 $plotNode = $panelNode->addPlotElement(RequestOutputPlotElementTypeEnum::INSTANTPLOT);
... ...