Skip to content

Commit

Permalink
Merge pull request #13 from jensopetersen/master
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangmm committed Jun 19, 2015
2 parents cae8549 + 5a8ba98 commit e2ca9b5
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 @@ -755,7 +755,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 @@ -785,7 +785,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 e2ca9b5

Please sign in to comment.