changeset ad237c4707db in tryton:5.0
details: https://hg.tryton.org/tryton?cmd=changeset&node=ad237c4707db
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 b05ca8670140 -r ad237c4707db 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
@@ -111,7 +111,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