]> source.dussan.org Git - gitea.git/commitdiff
Fix dependent issue searching when gitea is run in subpath (#5392)
authorLauris BH <lauris@nix.lv>
Sun, 25 Nov 2018 17:25:55 +0000 (19:25 +0200)
committertechknowlogick <hello@techknowlogick.com>
Sun, 25 Nov 2018 17:25:55 +0000 (12:25 -0500)
public/js/index.js
templates/repo/issue/view_content/sidebar.tmpl

index 9e33ac7de3930a8968d2312f40afd0762ef7f699..1e7dd4da19c21b1fb19cd66bd37a6e02a9f9befd 100644 (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
index fc4b812b21fb7dd49d093d6a9ce196b0a1323d2d..fa7a05512ddec4641bda67a6833bf2b7c9fd34e9 100644 (file)
        </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}}"/>