From 596b3723f249e0f556fc4a47abe5dd8db2d070dd Mon Sep 17 00:00:00 2001 From: fw-bot Date: Wed, 6 Nov 2019 17:20:08 +0000 Subject: [PATCH] [FIX] website: link dialog over image adaptation Adapt website for 13.0 9996d04fd2 change of LinkDialog constructor arguments (to get back to same arguments as in 12.0). opw-2086444 closes #39888 closes odoo/odoo#39910 Signed-off-by: Nicolas Lempereur (nle) --- addons/website/static/src/js/menu/content.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/website/static/src/js/menu/content.js b/addons/website/static/src/js/menu/content.js index 521e4bf8760..54720327968 100644 --- a/addons/website/static/src/js/menu/content.js +++ b/addons/website/static/src/js/menu/content.js @@ -413,10 +413,10 @@ var MenuEntryDialog = weWidgets.LinkDialog.extend({ /** * @constructor */ - init: function (parent, options, data) { + init: function (parent, options, editable, data) { this._super(parent, _.extend({ title: _t("Add a menu item"), - }, options || {}), _.extend({ + }, options || {}), editable, _.extend({ needLabel: true, text: data.name || '', isNewWindow: data.new_window, @@ -691,7 +691,7 @@ var EditMenuDialog = weWidgets.Dialog.extend({ var menuID = $menu.data('menu-id'); var menu = this.flat[menuID]; if (menu) { - var dialog = new MenuEntryDialog(this, {}, _.extend({ + var dialog = new MenuEntryDialog(this, {}, null, _.extend({ menuType: menu.fields['is_mega_menu'] ? 'mega' : undefined, }, menu.fields)); dialog.on('save', this, link => {