FIX get branches bug

This commit is contained in:
Jasder 2020-12-28 14:53:30 +08:00
parent 837aa1ea9e
commit cb90e1a13f
1 changed files with 1 additions and 2 deletions

View File

@ -6,7 +6,6 @@ class IssuesController < ApplicationController
before_action :check_project_public, only: [:index ,:show, :copy, :index_chosen, :close_issue]
before_action :set_issue, only: [:edit, :update, :destroy, :show, :copy, :close_issue, :lock_issue]
before_action :get_branches, only: [:new, :edit]
include ApplicationHelper
include TagChosenHelper
@ -96,7 +95,7 @@ class IssuesController < ApplicationController
end
def new
@all_branches = get_branches
# @all_branches = get_branches
@issue_chosen = issue_left_chosen(@project, nil)
end