修复创建英文名字的项目标题为“为项目讨论区的问题”

This commit is contained in:
huang 2016-08-01 13:51:11 +08:00
parent e41a14fa04
commit c7f2ab0415
1 changed files with 1 additions and 2 deletions

View File

@ -1224,8 +1224,7 @@ class Project < ActiveRecord::Base
# 创建项目后在项目下同步创建一个讨论区
def create_board_sync
@board = self.boards.build
self.name=" #{l(:label_borad_project) }"
@board.name = self.name
@board.name = " #{l(:label_borad_project) }"
@board.description = self.name.to_s
if @board.save
logger.debug "[Project Model] ===> #{@board.to_json}"