Don't use search_filter when res_id is empty list
This commit is contained in:
1 parent
94a78b6690
commit
d575ca55fc
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user