Commit e8ef5b33 authored by Jérome Perrin's avatar Jérome Perrin

Third Party Report: Don't fail if user selects '' in the role list

doc.isMemberOf('') is not valid
parent ed4e3e4e
......@@ -120,8 +120,9 @@ for party in context.Account_zDistinctSectionList(\n
if role_filter_list:\n
keep_this_one = False\n
for role in role_filter_list:\n
if o.isMemberOf(role):\n
if role and o.isMemberOf(role):\n
keep_this_one = True\n
break\n
\n
if not keep_this_one:\n
continue\n
......
1517
1518
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment