Don't use search_filter when res_id is empty list

This commit is contained in:
Cédric Krier committed 2008-09-10 13:22:00 +02:00
1 parent 94a78b6690
commit d575ca55fc
1 file changed
+1 -1
+1 -1
View File
@@ -139,7 +139,7 @@ class Form(SignalEvent):
'but_attach': self.sig_attach,
'but_close': self.sig_close,
}
if res_id:
if res_id not in (None, False):
if isinstance(res_id, int):
res_id = [res_id]
self.screen.load(res_id)