1
0
Fork 0

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

This commit is contained in:
Lauris BH 2018-11-25 19:25:55 +02:00 committed by techknowlogick
parent 7e587e097c
commit 499d132124
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -338,7 +338,7 @@
</div>
</div>
{{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 -->
<input type="hidden" id="issueIndex" value="{{.Issue.Index}}"/>