--- a/Allura/allura/controllers/project.py
+++ b/Allura/allura/controllers/project.py
@@ -163,9 +163,7 @@
project_name = h.really_unicode(project_name or '').encode('utf-8')
project_unixname = h.really_unicode(project_unixname or '').encode('utf-8').lower()
neighborhood = M.Neighborhood.query.get(name=neighborhood)
- c.project = neighborhood.register_project(project_unixname, private_project=private_project)
- if project_name:
- c.project.name = project_name
+ c.project = neighborhood.register_project(project_unixname, project_name=project_name, private_project=private_project)
if project_description:
c.project.short_description = project_description
ming.orm.ormsession.ThreadLocalORMSession.flush_all()