LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File couchdb-futon-default-view-language.patch of Package couchdb (Project server:database)

--- share/www/script/futon.browse.js.orig	2013-11-27 15:44:13.000000000 +0100
+++ share/www/script/futon.browse.js	2013-11-27 15:44:24.000000000 +0100
@@ -599,6 +599,9 @@
             for (var viewName in (doc.views || {})) {
               if (viewName != localViewName) numViews++;
             }
+            if (doc.language === undefined) {
+              doc.language = 'javascript';
+            }
             if (numViews > 0 && page.viewLanguage != doc.language) {
               alert("Cannot save view because the design document language " +
                     "is \"" + doc.language + "\", not \"" +