修复创建英文名字的项目标题为“为项目讨论区的问题”
This commit is contained in:
parent
e41a14fa04
commit
c7f2ab0415
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue