[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
This commit is contained in:
@@ -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``.
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user