summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-12-22 13:55:32 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-12-22 13:55:32 +0200
commit52a8e5c01a2a5377dbd51587f8197c49b17430b3 (patch)
tree98e68c5c94770f5c7ca3414152cb559c86287f6a /app
parented2bcf952be8e6431ad5d3fb7b39927880b512b0 (diff)
downloadgitlab-ce-52a8e5c01a2a5377dbd51587f8197c49b17430b3.tar.gz
Set group name from path in admin controller
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app')
-rw-r--r--app/controllers/admin/groups_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/groups_controller.rb b/app/controllers/admin/groups_controller.rb
index e6d0c9323c1..8c7d90a5d9f 100644
--- a/app/controllers/admin/groups_controller.rb
+++ b/app/controllers/admin/groups_controller.rb
@@ -21,7 +21,7 @@ class Admin::GroupsController < Admin::ApplicationController
def create
@group = Group.new(group_params)
- @group.path = @group.name.dup.parameterize if @group.name
+ @group.name = @group.path.dup unless @group.name
if @group.save
@group.add_owner(current_user)