Commit 43b2304e712073a1b6c785fd9d69ea82ac40c770
1 parent
f84b7023
Exists in
master
and in
18 other branches
Throw exception if Z parameter not defined
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php
... | ... | @@ -771,6 +771,9 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass |
771 | 771 | |
772 | 772 | if($paramData->{'param-drawing-object'}->{'histo2d-function'} != "density"){ |
773 | 773 | // paramId |
774 | + if (empty($paramZInfo['id'])) { | |
775 | + throw new Exception('Z parameter must be defined to apply function.'); | |
776 | + } | |
774 | 777 | $requestParamsNode->addParam($paramZInfo['id']); |
775 | 778 | $histogram2DNode->getHistotype()->setParamId($paramZInfo['id']); |
776 | 779 | ... | ... |