Commit fb7be323 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

For API compatibility still generate path from name if only name provided

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent d0b1bc22
......@@ -13,8 +13,15 @@ module Projects
end
# Set project name from path
unless @project.name.present?
if @project.name.present? && @project.path.present?
# if both name and path set - everything is ok
elsif @project.path.present?
# Set project name from path
@project.name = @project.path.dup
elsif @project.name.present?
# For compatibility - set path from name
# TODO: remove this in 8.0
@project.path = @project.name.dup.parameterize
end
# get namespace id
......
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