Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jensopetersen committed Feb 3, 2015
1 parent f7c26db commit 5a8ba98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/indexes.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ declare function indexes:remove-parameter-names($parameter-names-to-remove) {
indexes:remove-parameter-names(
for $current-parameter-name in $current-parameter-names
return
concat($current-parameter-name, '=', request:get-parameter( $current-parameter-name, () ))
concat($current-parameter-name, '=', request:get-parameter( $current-parameter-name, () )[1])
,
$parameter-names-to-remove
)
Expand Down Expand Up @@ -782,7 +782,7 @@ declare function indexes:replace-parameters($new-parameters) {
let $current-parameter-names := request:get-parameter-names()
let $current-parameters :=
for $name in $current-parameter-names
return concat($name, '=', request:get-parameter($name, ()))
return concat($name, '=', request:get-parameter($name, ())[1])
return
indexes:replace-parameters($current-parameters, $new-parameters)
};
Expand Down

0 comments on commit 5a8ba98

Please sign in to comment.