changeset bfa85507040b in tryton:6.0
details: https://hg.tryton.org/tryton?cmd=changeset&node=bfa85507040b
description:
Ensure active_ids is always a list
issue11088
review395191003
(grafted from 4e57efeca1467d95c45065e05d8e00310eee670f)
diffstat:
tryton/action/main.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r b9612966c6e0 -r bfa85507040b tryton/action/main.py
--- a/tryton/action/main.py Wed Dec 29 12:22:11 2021 +0100
+++ b/tryton/action/main.py Mon Jan 03 22:48:18 2022 +0100
@@ -101,7 +101,7 @@
ctx = {
'active_model': data.get('model'),
'active_id': data.get('id'),
- 'active_ids': data.get('ids', []),
+ 'active_ids': data.get('ids') or [],
}
ctx.update(rpc.CONTEXT)
ctx['_user'] = rpc._USER