TACTIC Open Source
Search.eval searching for retired even if show_retired=False - Printable Version

+- TACTIC Open Source (http://forum.southpawtech.com)
+-- Forum: TACTIC Open Source (http://forum.southpawtech.com/forumdisplay.php?fid=3)
+--- Forum: TACTIC Discussion (http://forum.southpawtech.com/forumdisplay.php?fid=4)
+--- Thread: Search.eval searching for retired even if show_retired=False (/showthread.php?tid=238)



Search.eval searching for retired even if show_retired=False - listy - 08-08-2021

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:

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]
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?