[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:
parent
1a3bd45961
commit
594862e93a
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue