Commit 48e27567 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #5755 from PlugIN73/patch-1

Fix bug with showing create merge request button
parents a4cbdbb1 6f072511
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] &&
......
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