Commit 40ac2ebc2129905cc0831f824dc1c6dc824efc90

Authored by Dmitriy Zaporozhets
1 parent 313d96e4

fixed bug with branch/commit detection in select

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/helpers/application_helper.rb
@@ -54,7 +54,7 @@ module ApplicationHelper @@ -54,7 +54,7 @@ module ApplicationHelper
54 54
55 # If reference is commit id - 55 # If reference is commit id -
56 # we should add it to branch/tag selectbox 56 # we should add it to branch/tag selectbox
57 - if(@ref && !options.include?(@ref) && 57 + if(@ref && !options.flatten.include?(@ref) &&
58 @ref =~ /^[0-9a-zA-Z]{6,52}$/) 58 @ref =~ /^[0-9a-zA-Z]{6,52}$/)
59 options << ["Commit", [@ref]] 59 options << ["Commit", [@ref]]
60 end 60 end