Commit 4ea6a045a5c77df26bbcac1c7e5ca012267a5456
1 parent
53cbdd65
Exists in
master
and in
45 other branches
Fix incompatibility between templated parameters & dataset time restriction (#8936)
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
src/InputOutput/IHMImpl/Params/IHMInputOutputParamsAbstractClass.php
@@ -257,7 +257,11 @@ abstract class IHMInputOutputParamsAbstractClass implements InputOutputInterface | @@ -257,7 +257,11 @@ abstract class IHMInputOutputParamsAbstractClass implements InputOutputInterface | ||
257 | $xp = new DOMXpath($xml); | 257 | $xp = new DOMXpath($xml); |
258 | 258 | ||
259 | foreach ($this->paramsData->getParamsToCopy() as $key => $value) { | 259 | foreach ($this->paramsData->getParamsToCopy() as $key => $value) { |
260 | - $paramNodes = $xp->query("//parameter[@xml:id='".$key."']"); | 260 | + $paramId = $key; |
261 | + if ($info = $this->paramManager->getTemplateParamsManager()->parseTemplatedParam($key)) { | ||
262 | + $paramId = $info['paramid']; | ||
263 | + } | ||
264 | + $paramNodes = $xp->query("//parameter[@xml:id='".$paramId."']"); | ||
261 | if ($paramNodes->length == 0) { | 265 | if ($paramNodes->length == 0) { |
262 | continue; | 266 | continue; |
263 | } | 267 | } |