summaryrefslogtreecommitdiff
path: root/addons/wiki/wizard/wiki_show_diff.py
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2010-09-01 17:28:23 +0530
committerHarry (OpenERP) <hmo@tinyerp.com>2010-09-01 17:28:23 +0530
commit4ecbf905cc2710e742eae491f0f3c833f303cb1b (patch)
tree17e3fe632d4957d1c20cb75f56dc91708459d35e /addons/wiki/wizard/wiki_show_diff.py
parent297ba866c02e004ab6a67303624a8c2592282ccb (diff)
[FIX] Wiki: yml issue
An osv_memory object need not be created, but just reference an arbitrary id. Let the page have some modifications, and then search its history for bzr revid: hmo@tinyerp.com-20100901115823-agwkfnmu04yo67nn
Diffstat (limited to 'addons/wiki/wizard/wiki_show_diff.py')
-rw-r--r--addons/wiki/wizard/wiki_show_diff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/wiki/wizard/wiki_show_diff.py b/addons/wiki/wizard/wiki_show_diff.py
index 7654ce3e153..43f3f698611 100644
--- a/addons/wiki/wizard/wiki_show_diff.py
+++ b/addons/wiki/wizard/wiki_show_diff.py
@@ -34,7 +34,7 @@ class showdiff(osv.osv_memory):
@param uid: the current user’s ID for security checks,
"""
history = self.pool.get('wiki.wiki.history')
- ids = context.get('active_ids')
+ ids = context.get('active_ids', [])
diff = ""
if len(ids) == 2: