Fix search on ModelSingleton to always return a list for issue1196

This commit is contained in:
Cédric Krier
2009-09-30 13:00:11 +02:00
parent 7e50431794
commit fbde24da78
-2
View File
@@ -77,8 +77,6 @@ class ModelSingleton(ModelStorage):
res = super(ModelSingleton, self).search(cursor, user, domain,
offset=0, limit=None, order=None, context=None, count=False)
if not res:
if limit == 1:
return 1
return [1]
return res