diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 8217d0184d1..6636d5ab73e 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -410,7 +410,7 @@ openerp.web.Database = openerp.web.OldWidget.extend(/** @lends openerp.web.Datab $db_list = $form.find('[name=drop_db]'), db = $db_list.val(); - if (!confirm("Do you really want to delete the database: " + db + " ?")) { + if (!db || !confirm("Do you really want to delete the database: " + db + " ?")) { return; } self.rpc("/web/database/drop", {'fields': fields}, function(result) {