Commit 6f072511 authored by Alexander Vagin's avatar Alexander Vagin

Fix bug with showing create merge request button while merge request are...

Fix bug with showing create merge request button while merge request are disabled in project settings
parent a4cbdbb1
module CompareHelper module CompareHelper
def compare_to_mr_button? 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[:from]) &&
@repository.branch_names.include?(params[:to]) && @repository.branch_names.include?(params[:to]) &&
params[:from] != params[:to] && params[:from] != params[:to] &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment