Browse Source

Fix dependent issue searching when gitea is run in subpath (#5392)

tags/v1.21.12.1
Lauris BH techknowlogick 7 years ago
parent
commit
499d132124
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      public/js/index.js
  2. +1
    -1
      templates/repo/issue/view_content/sidebar.tmpl

+ 1
- 1
public/js/index.js View File

@@ -2712,7 +2712,7 @@ function initIssueList() {
$('.new-dependency-drop-list') $('.new-dependency-drop-list')
.dropdown({ .dropdown({
apiSettings: { apiSettings: {
url: suburl + '/api/v1/repos' + repolink + '/issues?q={query}',
url: suburl + '/api/v1/repos/' + repolink + '/issues?q={query}',
onResponse: function(response) { onResponse: function(response) {
var filteredResponse = {'success': true, 'results': []}; var filteredResponse = {'success': true, 'results': []};
// Parse the response from the api to work with our dropdown // Parse the response from the api to work with our dropdown


+ 1
- 1
templates/repo/issue/view_content/sidebar.tmpl View File

@@ -338,7 +338,7 @@
</div> </div>
</div> </div>
{{if .CanCreateIssueDependencies}} {{if .CanCreateIssueDependencies}}
<input type="hidden" id="repolink" value="{{$.RepoLink}}">
<input type="hidden" id="repolink" value="{{$.RepoRelPath}}">
<!-- I know, there is probably a better way to do this --> <!-- I know, there is probably a better way to do this -->
<input type="hidden" id="issueIndex" value="{{.Issue.Index}}"/> <input type="hidden" id="issueIndex" value="{{.Issue.Index}}"/>




Loading…
Cancel
Save