← Back to team overview

openerp-dev-web team mailing list archive

[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-736102-aag into lp:openobject-addons

 

Atik Agewan(OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-736102-aag into lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #736102 in OpenERP Addons: "Wiki Pages Application error after clicking on Create Index "
  https://bugs.launchpad.net/openobject-addons/+bug/736102

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-736102-aag/+merge/54209


[FIX] WIKI: Wiki Pages Application error after clicking on Create Index
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-736102-aag/+merge/54209
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-736102-aag.
=== modified file 'wiki/wizard/wiki_make_index.py'
--- wiki/wizard/wiki_make_index.py	2011-01-14 00:11:01 +0000
+++ wiki/wizard/wiki_make_index.py	2011-03-21 13:28:35 +0000
@@ -38,7 +38,10 @@
         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 \


Follow ups