##// END OF EJS Templates
default-reviewers: fixed case of passing wrong info about source repository.
marcink -
r3272:a7a2e139 default
parent child Browse files
Show More
@@ -25,6 +25,7 b' from pyramid.view import view_config'
25 25 from rhodecode.apps._base import RepoAppView
26 26 from rhodecode.apps.repository.utils import get_default_reviewers_data
27 27 from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator
28 from rhodecode.model.db import Repository
28 29
29 30 log = logging.getLogger(__name__)
30 31
@@ -53,8 +54,8 b' class RepoReviewRulesView(RepoAppView):'
53 54 renderer='json_ext')
54 55 def repo_default_reviewers_data(self):
55 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 59 review_data = get_default_reviewers_data(
57 self.db_repo.user, None, None, None, None)
60 self.db_repo.user, None, None, target_repo, None)
58 61 return review_data
59
60
General Comments 0
You need to be logged in to leave comments. Login now