Commit 4ea6a045a5c77df26bbcac1c7e5ca012267a5456

Authored by Benjamin Renard
1 parent 53cbdd65

Fix incompatibility between templated parameters & dataset time restriction (#8936)

src/InputOutput/IHMImpl/Params/IHMInputOutputParamsAbstractClass.php
... ... @@ -257,7 +257,11 @@ abstract class IHMInputOutputParamsAbstractClass implements InputOutputInterface
257 257 $xp = new DOMXpath($xml);
258 258  
259 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 265 if ($paramNodes->length == 0) {
262 266 continue;
263 267 }
... ...