Show More
@@ -25,6 +25,7 b' from pyramid.view import view_config' | |||||
25 | from rhodecode.apps._base import RepoAppView |
|
25 | from rhodecode.apps._base import RepoAppView | |
26 | from rhodecode.apps.repository.utils import get_default_reviewers_data |
|
26 | from rhodecode.apps.repository.utils import get_default_reviewers_data | |
27 | from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator |
|
27 | from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator | |
|
28 | from rhodecode.model.db import Repository | |||
28 |
|
29 | |||
29 | log = logging.getLogger(__name__) |
|
30 | log = logging.getLogger(__name__) | |
30 |
|
31 | |||
@@ -53,8 +54,8 b' class RepoReviewRulesView(RepoAppView):' | |||||
53 | renderer='json_ext') |
|
54 | renderer='json_ext') | |
54 | def repo_default_reviewers_data(self): |
|
55 | def repo_default_reviewers_data(self): | |
55 | self.load_default_context() |
|
56 | self.load_default_context() | |
|
57 | target_repo_name = self.request.GET.get('target_repo', self.db_repo.repo_name) | |||
|
58 | target_repo = Repository.get_by_repo_name(target_repo_name) | |||
56 | review_data = get_default_reviewers_data( |
|
59 | review_data = get_default_reviewers_data( | |
57 |
self.db_repo.user, None, None, |
|
60 | self.db_repo.user, None, None, target_repo, None) | |
58 | return review_data |
|
61 | return review_data | |
59 |
|
||||
60 |
|
General Comments 0
You need to be logged in to leave comments.
Login now