mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-28 14:06:05 +10:00
Merge pull request #5755 from PlugIN73/patch-1
Fix bug with showing create merge request button
This commit is contained in:
@@ -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] &&
|
||||
|
||||
Reference in New Issue
Block a user