Skip to content

Commit 46f3aa1

Browse files
committed
include edocBaseDB for non-global searches
non-global searches could return no matches
1 parent 84d02ab commit 46f3aa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

edoc/modules/search.xqm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ declare function wdbSearch:search($node as node(), $model as map(*)) {
6969
else
7070
let $coll := if ($model("global") = 'on')
7171
then $wdb:edocBaseDB
72-
else $model("ed")
72+
else $wdb:edocBaseDB||'/'||$model("ed")
7373
return (
7474
<h3>Ergebnisse in {$coll}</h3>,
7575
<p>Suchstring: {$model("query")}</p>,

0 commit comments

Comments
 (0)