From 274b1dabb9d7671e7b9613ff5d3aaa89cc5ce0a4 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Fri, 30 Sep 2016 12:10:48 +0200 Subject: [PATCH] [FIX] website: reset full to False by default Studio altered (probably by error) the default value. We reset the old default value, and by security, add the params in the call --- addons/website/controllers/main.py | 2 +- addons/website/static/src/js/website.editor.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/website/controllers/main.py b/addons/website/controllers/main.py index 336250f1a59..0826ac839d7 100644 --- a/addons/website/controllers/main.py +++ b/addons/website/controllers/main.py @@ -261,7 +261,7 @@ class Website(Home): return request.redirect(redirect) @http.route('/website/customize_template_get', type='json', auth='user', website=True) - def customize_template_get(self, key, full=True, bundles=False): + def customize_template_get(self, key, full=False, bundles=False): """ Get inherit view's informations of the template ``key``. By default, only :returns ``customize_show`` templates (which can be active or not), if ``full=True`` returns inherit view's informations of the template ``key``. diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index e0cf880e611..d1e71d064a2 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -72,6 +72,7 @@ website.TopBarCustomize = Widget.extend({ var $menu = this.$el.children("ul"); ajax.jsonRpc('/website/customize_template_get', 'call', { key: this.view_name, + full: false }).then(function (result) { _.each(result, function (item) { if (item.header) {