assign design doc correctly

Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/0f4b7c65
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/0f4b7c65
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/0f4b7c65

Branch: refs/heads/2201-fix-new-view
Commit: 0f4b7c65b23725d6f691e92d8053997b13758f8b
Parents: 860eba7
Author: Garren Smith <[email protected]>
Authored: Thu Mar 13 12:06:55 2014 -0400
Committer: Garren Smith <[email protected]>
Committed: Thu Mar 13 13:25:33 2014 -0400

----------------------------------------------------------------------
 src/fauxton/app/addons/documents/routes.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/0f4b7c65/src/fauxton/app/addons/documents/routes.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/documents/routes.js 
b/src/fauxton/app/addons/documents/routes.js
index 67589d4..c7730df 100644
--- a/src/fauxton/app/addons/documents/routes.js
+++ b/src/fauxton/app/addons/documents/routes.js
@@ -294,7 +294,7 @@ function(app, FauxtonAPI, Documents, Databases) {
 
     createViewDocumentsView: function (designDoc, docParams, urlParams, 
database, indexedDocs, designDocs) {
        var ddocInfo = {
-        id: "_design/" + designDocs,
+        id: "_design/" + designDoc,
         currView: view,
         designDocs: this.data.designDocs
       };

Reply via email to