[IMP] binary/image should be backward compatible when id url parameter is empty

bzr revid: fme@openerp.com-20120809142346-79xiq48qbgx7743i
This commit is contained in:
Fabien Meghazi 2012-08-09 16:23:46 +02:00
parent 1a3bd45961
commit 594862e93a
1 changed files with 1 additions and 1 deletions

View File

@ -1373,7 +1373,7 @@ class Binary(openerpweb.Controller):
retag = hashed_session
try:
id = simplejson.loads(id)
id = None if not id else simplejson.loads(id)
if type(id) is list:
id = id[0] # m2o
if not id: