~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/model/bugtask.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
2260
2260
            # instead.
2261
2261
            params.orderby = [
2262
2262
                SQLConstant("-rank(Bug.fti, ftq(%s))" % searchtext_quoted),
2263
 
                SQLConstant(
2264
 
                    "-rank(BugTask.fti, ftq(%s))" % searchtext_quoted)]
 
2263
                ]
2265
2264
 
2266
2265
        comment_clause = """BugTask.id IN (
2267
2266
            SELECT BugTask.id
2272
2271
                AND MessageChunk.fti @@ ftq(%s))""" % searchtext_quoted
2273
2272
        text_search_clauses = [
2274
2273
            "Bug.fti @@ ftq(%s)" % searchtext_quoted,
2275
 
            "BugTask.fti @@ ftq(%s)" % searchtext_quoted,
2276
2274
            ]
2277
2275
        no_targetnamesearch = bool(features.getFeatureFlag(
2278
2276
            'malone.disable_targetnamesearch'))
2458
2456
            return DecoratedResultSet(resultset, result_decorator=decorator,
2459
2457
                pre_iter_hook=pre_iter_hook)
2460
2458
 
2461
 
        bugtask_fti = SQL('BugTask.fti')
2462
 
        inner_resultrow = (BugTask, bugtask_fti)
 
2459
        inner_resultrow = (BugTask,)
2463
2460
        origin = self.buildOrigin(join_tables, [], clauseTables)
2464
2461
        resultset = store.using(*origin).find(inner_resultrow, query)
2465
2462