Show More
@@ -37,7 +37,7 b' from rhodecode.model import user_group' | |||
|
37 | 37 | from rhodecode.model import user |
|
38 | 38 | from rhodecode.model.db import User |
|
39 | 39 | from rhodecode.model.scm import ScmModel |
|
40 | from rhodecode.model.settings import VcsSettingsModel | |
|
40 | from rhodecode.model.settings import VcsSettingsModel, IssueTrackerSettingsModel | |
|
41 | 41 | from rhodecode.model.repo import ReadmeFinder |
|
42 | 42 | |
|
43 | 43 | log = logging.getLogger(__name__) |
@@ -226,6 +226,7 b' class RepoAppView(BaseAppView):' | |||
|
226 | 226 | self.db_repo_name = self.db_repo.repo_name |
|
227 | 227 | self.db_repo_pull_requests = ScmModel().get_pull_requests(self.db_repo) |
|
228 | 228 | self.db_repo_artifacts = ScmModel().get_artifacts(self.db_repo) |
|
229 | self.db_repo_patterns = IssueTrackerSettingsModel(repo=self.db_repo) | |
|
229 | 230 | |
|
230 | 231 | def _handle_missing_requirements(self, error): |
|
231 | 232 | log.error( |
@@ -31,7 +31,7 b' from rhodecode.lib.auth import (' | |||
|
31 | 31 | LoginRequired, HasRepoPermissionAnyDecorator, CSRFRequired) |
|
32 | 32 | from rhodecode.model.forms import IssueTrackerPatternsForm |
|
33 | 33 | from rhodecode.model.meta import Session |
|
34 |
from rhodecode.model.settings import |
|
|
34 | from rhodecode.model.settings import SettingsModel | |
|
35 | 35 | |
|
36 | 36 | log = logging.getLogger(__name__) |
|
37 | 37 | |
@@ -53,7 +53,7 b' class RepoSettingsIssueTrackersView(Repo' | |||
|
53 | 53 | c.active = 'issuetracker' |
|
54 | 54 | c.data = 'data' |
|
55 | 55 | |
|
56 |
c.settings_model = |
|
|
56 | c.settings_model = self.db_repo_patterns | |
|
57 | 57 | c.global_patterns = c.settings_model.get_global_settings() |
|
58 | 58 | c.repo_patterns = c.settings_model.get_repo_settings() |
|
59 | 59 | |
@@ -79,7 +79,7 b' class RepoSettingsIssueTrackersView(Repo' | |||
|
79 | 79 | def repo_issuetracker_delete(self): |
|
80 | 80 | _ = self.request.translate |
|
81 | 81 | uid = self.request.POST.get('uid') |
|
82 |
repo_settings = |
|
|
82 | repo_settings = self.db_repo_patterns | |
|
83 | 83 | try: |
|
84 | 84 | repo_settings.delete_entries(uid) |
|
85 | 85 | except Exception: |
@@ -113,7 +113,7 b' class RepoSettingsIssueTrackersView(Repo' | |||
|
113 | 113 | def repo_issuetracker_update(self): |
|
114 | 114 | _ = self.request.translate |
|
115 | 115 | # Save inheritance |
|
116 |
repo_settings = |
|
|
116 | repo_settings = self.db_repo_patterns | |
|
117 | 117 | inherited = ( |
|
118 | 118 | self.request.POST.get('inherit_global_issuetracker') == "inherited") |
|
119 | 119 | repo_settings.inherit_global_settings = inherited |
General Comments 0
You need to be logged in to leave comments.
Login now