Show More
@@ -54,7 +54,7 b' from rhodecode.model.changeset_status im' | |||
|
54 | 54 | from rhodecode.model.comment import CommentsModel |
|
55 | 55 | from rhodecode.model.db import ( |
|
56 | 56 | or_, String, cast, PullRequest, PullRequestReviewers, ChangesetStatus, |
|
57 | PullRequestVersion, ChangesetComment, Repository, RepoReviewRule) | |
|
57 | PullRequestVersion, ChangesetComment, Repository, RepoReviewRule, User) | |
|
58 | 58 | from rhodecode.model.meta import Session |
|
59 | 59 | from rhodecode.model.notification import NotificationModel, \ |
|
60 | 60 | EmailNotificationModel |
@@ -160,8 +160,10 b' class PullRequestModel(BaseModel):' | |||
|
160 | 160 | |
|
161 | 161 | if search_q: |
|
162 | 162 | like_expression = u'%{}%'.format(safe_unicode(search_q)) |
|
163 | q = q.join(User) | |
|
163 | 164 | q = q.filter(or_( |
|
164 | 165 | cast(PullRequest.pull_request_id, String).ilike(like_expression), |
|
166 | User.username.ilike(like_expression), | |
|
165 | 167 | PullRequest.title.ilike(like_expression), |
|
166 | 168 | PullRequest.description.ilike(like_expression), |
|
167 | 169 | )) |
@@ -374,8 +376,10 b' class PullRequestModel(BaseModel):' | |||
|
374 | 376 | |
|
375 | 377 | if query: |
|
376 | 378 | like_expression = u'%{}%'.format(safe_unicode(query)) |
|
379 | q = q.join(User) | |
|
377 | 380 | q = q.filter(or_( |
|
378 | 381 | cast(PullRequest.pull_request_id, String).ilike(like_expression), |
|
382 | User.username.ilike(like_expression), | |
|
379 | 383 | PullRequest.title.ilike(like_expression), |
|
380 | 384 | PullRequest.description.ilike(like_expression), |
|
381 | 385 | )) |
General Comments 0
You need to be logged in to leave comments.
Login now