Commit 9cce1f21812ab09f0ef9c86051fb4220489755ad

Authored by Benjamin Renard
1 parent 4ea6a045

Fix bug in param template detection (#9046)

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
src/InputOutput/IHMImpl/Tools/IHMParamTemplateClass.php
@@ -65,9 +65,8 @@ class IHMParamTemplateClass @@ -65,9 +65,8 @@ class IHMParamTemplateClass
65 if ($tmp_paramid != "") 65 if ($tmp_paramid != "")
66 $tmp_paramid .= "_"; 66 $tmp_paramid .= "_";
67 $tmp_paramid .= $expression_part; 67 $tmp_paramid .= $expression_part;
68 - if ($this->isTemplatedParam($tmp_paramid)) { 68 + if ($this->isTemplatedParam($tmp_paramid) && strlen($tmp_paramid) > strlen($real_param_id)) {
69 $real_param_id = $tmp_paramid; 69 $real_param_id = $tmp_paramid;
70 - break;  
71 } 70 }
72 } 71 }
73 72