From b7301dc028ece6d1c268c948708156c52e4ca280 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Thu, 16 Jan 2020 09:54:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9repostiroy=E7=9A=84identifier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/issues_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index fe6a85344..4c736bb02 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -127,7 +127,7 @@ class IssuesController < ApplicationController def new @all_branches = [] - get_all_branches = Gitea::Repository::BranchesService.new(@user, @repository.try(:identifier)).call + get_all_branches = Gitea::Repository::BranchesService.new(@user, @project.repository.try(:identifier)).call if get_all_branches && get_all_branches.size > 0 get_all_branches.each do |b| @all_branches.push(b["name"])