Commit 98ead47ac9b86e491aa521fa1bd60c77444783f9
1 parent
f2ae344a
Exists in
master
and in
6 other branches
Fix when a templated parameter is used as a reference parameter for resampling - #11690 & #11686
Showing
1 changed file
with
11 additions
and
0 deletions
Show diff stats
src/InputOutput/IHMImpl/Tools/IHMParamManagerClass.php
... | ... | @@ -119,6 +119,17 @@ class IHMParamManagerClass |
119 | 119 | $this->addExistingParam($param["paramid"],$paramsData,$template_args); |
120 | 120 | } |
121 | 121 | if (!empty($ref_param)) { |
122 | + $template_args = array(); | |
123 | + | |
124 | + $templated_ref_param = $this->templateParamsManager->parseTemplatedParam($ref_param); | |
125 | + | |
126 | + if ($templated_ref_param !== FALSE) { | |
127 | + $ref_param = $templated_ref_param['paramid']; | |
128 | + foreach ($templated_ref_param['template_args'] as $key => $val) { | |
129 | + $template_args[$key] = $val; | |
130 | + } | |
131 | + } | |
132 | + | |
122 | 133 | $this->addExistingParam($ref_param, $paramsData,$template_args); |
123 | 134 | } |
124 | 135 | ... | ... |