From 74bc270a4e004b3eba32b42f66a2508eb4c41542 Mon Sep 17 00:00:00 2001 From: Wolfgang Meier Date: Fri, 11 Oct 2024 09:59:08 +0000 Subject: [PATCH] Workaround to re-enable access to roaster request parameters from HTML templating --- modules/lib/util.xql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/lib/util.xql b/modules/lib/util.xql index 1adf3128..843e7285 100644 --- a/modules/lib/util.xql +++ b/modules/lib/util.xql @@ -86,6 +86,9 @@ declare function tpu:parse-pi($doc as document-node(), $view as xs:string?, $odd }; declare function tpu:get-template-config($request as map(*)) { + for $param in map:keys($request?parameters) + return + request:set-attribute($param, $request?parameters($param)), map:merge(( $tpu:template-config, map { @@ -93,7 +96,6 @@ declare function tpu:get-template-config($request as map(*)) { let $pval := array:fold-right( [ request:get-parameter($param, ()), - (: if (map:contains($request, 'parameters')) then $request?parameters($param) else (), :) request:get-attribute($param), session:get-attribute($config:session-prefix || "." || $param) ], (),