summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2012-03-28 17:00:31 +0200
committerFabien Meghazi <fme@openerp.com>2012-03-28 17:00:31 +0200
commit179fb5ce69bfebc7e5cbb2f20b5a53101eebea41 (patch)
tree09bd86946fa7aa5afa868287f608845bfe19ea5b /addons
parent8d4de6e4e8b079b3c86eea1191e05a1badbcdd22 (diff)
[FIX] KeyError: 'drop_db'. When trying to drop db without db name
lp bug: https://launchpad.net/bugs/966108 fixed bzr revid: fme@openerp.com-20120328150031-6hdb9rwjoh3stfif
Diffstat (limited to 'addons')
-rw-r--r--addons/web/static/src/js/chrome.js2
1 files changed, 1 insertions, 1 deletions
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) {