Fix bug with showing create merge request button while merge request are disabled in project settings
This commit is contained in:
parent
a4cbdbb10d
commit
6f0725119c
|
@ -1,6 +1,8 @@
|
|||
module CompareHelper
|
||||
def compare_to_mr_button?
|
||||
params[:from].present? && params[:to].present? &&
|
||||
@project.merge_requests_enabled &&
|
||||
params[:from].present? &&
|
||||
params[:to].present? &&
|
||||
@repository.branch_names.include?(params[:from]) &&
|
||||
@repository.branch_names.include?(params[:to]) &&
|
||||
params[:from] != params[:to] &&
|
||||
|
|
Loading…
Reference in New Issue