Commit 8289ec0656994694f1f574ce66cde7c4bd85ff4f
1 parent
4bd51f22
Exists in
master
and in
63 other branches
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,6 +314,14 @@ class IHMParamManagerClass | ||
314 | $res["param"]["info"]["type"],$res["param"]["info"]["size"], | 314 | $res["param"]["info"]["type"],$res["param"]["info"]["size"], |
315 | $res["param"]["dateModif"]); | 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 | $tableDef = $res["param"]["info"]["tableDef"]; | 326 | $tableDef = $res["param"]["info"]["tableDef"]; |
319 | if (isset($tableDef) && array_key_exists('tableDefType', $tableDef) && ($tableDef['tableDefType'] != 'NONE')) | 327 | if (isset($tableDef) && array_key_exists('tableDefType', $tableDef) && ($tableDef['tableDefType'] != 'NONE')) |