From f723cb99008f2462abec46ab9b614fb8dd2f31d1 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Mon, 17 Aug 2009 23:04:28 +0000 Subject: allow list function and view function to be in different design docs, patch by Mark Hammond, closes COUCHDB-446 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@805201 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_httpd_view.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/couchdb/couch_httpd_view.erl') diff --git a/src/couchdb/couch_httpd_view.erl b/src/couchdb/couch_httpd_view.erl index d2f22c77..884402da 100644 --- a/src/couchdb/couch_httpd_view.erl +++ b/src/couchdb/couch_httpd_view.erl @@ -83,7 +83,7 @@ handle_db_view_req(#httpd{method='GET', case ListName of nil -> couch_httpd_view:design_doc_view(Req, Db, DName, ViewName, nil); _ -> - couch_httpd_show:handle_view_list(Req, DName, ListName, ViewName, Db, nil) + couch_httpd_show:handle_view_list(Req, DName, ListName, DName, ViewName, Db, nil) end; handle_db_view_req(#httpd{method='POST', @@ -110,7 +110,7 @@ handle_db_view_req(#httpd{method='POST', {Props2} = ?JSON_DECODE(ReqBody), Keys = proplists:get_value(<<"keys">>, Props2, nil), couch_httpd_show:handle_view_list(Req#httpd{req_body=ReqBody}, - DName, ListName, ViewName, Db, Keys) + DName, ListName, DName, ViewName, Db, Keys) end; handle_db_view_req(Req, _Db) -> -- cgit v1.2.3