changeset 75d8b06c85a5 in sao:6.2
details: https://hg.tryton.org/sao?cmd=changeset&node=75d8b06c85a5
description:
        Ensure active_ids is always a list

        issue11088
        review395191003
        (grafted from 24eab059161d2194fc16a900ef397c0ba406b9b3)
diffstat:

 src/action.js |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 1814e4905071 -r 75d8b06c85a5 src/action.js
--- a/src/action.js     Mon Jan 03 22:41:15 2022 +0100
+++ b/src/action.js     Mon Jan 03 22:48:18 2022 +0100
@@ -77,7 +77,7 @@
                 var ctx = {
                     active_model: data.model || null,
                     active_id: data.id || null,
-                    active_ids: data.ids
+                    active_ids: data.ids || [],
                 };
                 ctx = jQuery.extend(ctx, session.context);
                 ctx._user = session.user_id;

Reply via email to