changeset 25b99484db1e in modules/project:5.6
details: https://hg.tryton.org/modules/project?cmd=changeset;node=25b99484db1e
description:
        Return empty list by default in get_window_domains

        The clients expect to always receive an iterable value for domains.

        issue9914
        review335291002
        (grafted from 3293add44dd2a5be2f88b5b0f773ce0fdf2904dd)
diffstat:

 work.py |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r b696e93257a2 -r 25b99484db1e work.py
--- a/work.py   Sat Dec 05 11:47:21 2020 +0100
+++ b/work.py   Sun Dec 06 00:36:56 2020 +0100
@@ -97,6 +97,8 @@
             return cls._get_window_domains(['project'])
         elif action.id == Data.get_id('project', 'act_task_form'):
             return cls._get_window_domains(['task'])
+        else:
+            return []
 
     @classmethod
     def _get_window_domains(cls, types):

Reply via email to