We have some users that already not in the current project, and want them not to show anymore in TaskElement Widget, so we retired them.
But they are there. I looked for code a little bit, and found this:
This is clearly should not return retired users, as Search.eval has show_retired=False
Any thoughts what's going on?
May be its because they are still in User groups?
But they are there. I looked for code a little bit, and found this:
Code:
if not self.assigned_values_expr:
self.assigned_values_expr = "@SOBJECT(sthpw/login['@ORDER_BY','display_name'])"
if assigned == 'true':
if self.assigned_label_attr:
# maybe we can apply this filter to filter out disabled users ['license_type','is','NULL']['license_type','!=','disabled']['or']
users = Search.eval(self.assigned_values_expr)
user_names = [x.get_value('login') for x in users]
Any thoughts what's going on?
May be its because they are still in User groups?