Commit 8ef738e8947770f649ceeeb2dbea0efa840e3c92
1 parent
c0e578da
Exists in
master
and in
63 other branches
Fix templated param detection (fix for #6389)
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
src/InputOutput/IHMImpl/Tools/IHMParamTemplateClass.php
... | ... | @@ -106,6 +106,11 @@ class IHMParamTemplateClass |
106 | 106 | $template_args = array(); |
107 | 107 | $i = 0; |
108 | 108 | foreach ($template_args_info["arguments"] as $arg_key => $arg) { |
109 | + if ($arg["type"] == "list") { | |
110 | + if (!array_key_exists($exploded_args[$i], $arg['items'])) { | |
111 | + return FALSE; | |
112 | + } | |
113 | + } | |
109 | 114 | $template_args[$arg_key] = $exploded_args[$i]; |
110 | 115 | ++$i; |
111 | 116 | } |
... | ... |