Commit 8289ec0656994694f1f574ce66cde7c4bd85ff4f

Authored by Benjamin Renard
1 parent 4bd51f22

Y-Title and Units for MyData parameters (#5961)

Showing 1 changed file with 8 additions and 0 deletions   Show diff stats
src/InputOutput/IHMImpl/Tools/IHMParamManagerClass.php
... ... @@ -314,6 +314,14 @@ class IHMParamManagerClass
314 314 $res["param"]["info"]["type"],$res["param"]["info"]["size"],
315 315 $res["param"]["dateModif"]);
316 316  
  317 + if (!empty($res["param"]["info"]["yTitle"])) {
  318 + $newParamNode->getInfo()->setName($res["param"]["info"]['yTitle']);
  319 + $newParamNode->getInfo()->setShortName($res["param"]["info"]['yTitle']);
  320 + }
  321 + if (!empty($res["param"]["info"]['units'])) {
  322 + $newParamNode->getInfo()->setUnits($res["param"]["info"]['units']);
  323 + }
  324 +
317 325  
318 326 $tableDef = $res["param"]["info"]["tableDef"];
319 327 if (isset($tableDef) && array_key_exists('tableDefType', $tableDef) && ($tableDef['tableDefType'] != 'NONE'))
... ...