Skip to content

Commit

Permalink
Fix error if $request?parameters is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangmm committed Oct 11, 2024
1 parent 74bc270 commit 54ca041
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/lib/util.xql
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,12 @@ 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)),
if (map:contains($request, "parameters")) then
for $param in map:keys($request?parameters)
return
request:set-attribute($param, $request?parameters($param))
else
(),
map:merge((
$tpu:template-config,
map {
Expand Down

0 comments on commit 54ca041

Please sign in to comment.