Skip to content

Commit

Permalink
Merge pull request #1560 from couchbase/feature/issue_1556
Browse files Browse the repository at this point in the history
Fix for query issue when using multiple views within a design doc
  • Loading branch information
Andrew Reslan committed Feb 3, 2016
2 parents 490449e + 30b19ea commit 9df63a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/github.com/couchbase/sync_gateway/db/design_doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ func wrapViews(ddoc *DesignDoc, enableUserViews bool) {
return;
delete doc._sync;
meta.rev = sync.rev;
(` + view.Map + `) (doc, meta); }`
(` + view.Map + `) (doc, meta);
doc._sync = sync;}`
ddoc.Views[name] = view // view is not a pointer, so have to copy it back
}
}
Expand Down

0 comments on commit 9df63a5

Please sign in to comment.