From f611508bfe48a8723cc09f8dab9d271fe94f5c8c Mon Sep 17 00:00:00 2001 From: "aag (OpenERP)" Date: Mon, 21 Mar 2011 14:57:55 +0530 Subject: [PATCH] [FIX] WIKI: Wiki Pages Application error after clicking on Create Index lp bug: https://launchpad.net/bugs/736102 fixed bzr revid: aag@tinyerp.co.in-20110321092755-p2yx10ijm36rmevp --- addons/wiki/wizard/wiki_make_index.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/wiki/wizard/wiki_make_index.py b/addons/wiki/wizard/wiki_make_index.py index 1e2dae8f92d..6cf26f663b7 100644 --- a/addons/wiki/wizard/wiki_make_index.py +++ b/addons/wiki/wizard/wiki_make_index.py @@ -38,7 +38,10 @@ class wiki_make_index(osv.osv_memory): if context is None: context = {} data = context and context.get('active_ids', []) or [] - + + if not data: + return {'type': 'ir.actions.act_window_close'} + for index_obj in self.browse(cr, uid, ids, context=context): wiki_pool = self.pool.get('wiki.wiki') cr.execute("Select id, section from wiki_wiki where id IN %s \