Do not add id_ to checked wizard ids if not set

issue9491
review321961002
This commit is contained in:
Sebastien Marie
2020-08-18 09:47:23 +02:00
parent 0b85f26f78
commit 036af9f47b
+1 -1
View File
@@ -262,7 +262,7 @@ class Wizard(URLMixin, PoolBase):
if model:
ids = context.get('active_ids') or []
id_ = context.get('active_id')
if id_ not in ids:
if id_ not in ids and id_ is not None:
ids.append(id_)
# Check read access
Model.read(ids, ['id'])