BigW Consortium Gitlab

Commit 40ac2ebc by Dmitriy Zaporozhets

fixed bug with branch/commit detection in select

parent 313d96e4
......@@ -54,7 +54,7 @@ module ApplicationHelper
# If reference is commit id -
# we should add it to branch/tag selectbox
if(@ref && !options.include?(@ref) &&
if(@ref && !options.flatten.include?(@ref) &&
@ref =~ /^[0-9a-zA-Z]{6,52}$/)
options << ["Commit", [@ref]]
end
......
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