diff --git a/app/models/project.rb b/app/models/project.rb index 36a28e1b6..f371af8e4 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -1092,8 +1092,13 @@ class Project < ActiveRecord::Base # 创建项目后在项目下同步创建一个讨论区 def create_board_sync @board = self.boards.build + if project_type == 1 + self.name=" #{l(:label_borad_course) }" + else + self.name =" #{l(:label_borad_project) }" + end @board.name = self.name - @board.description = self.name.to_s << " #{l(:label_board) }" + @board.description = self.name.to_s if @board.save logger.debug "[Project Model] ===> #{@board.to_json}" else diff --git a/app/views/boards/show.html.erb b/app/views/boards/show.html.erb index 7761e499e..ad05362b2 100644 --- a/app/views/boards/show.html.erb +++ b/app/views/boards/show.html.erb @@ -1,13 +1,13 @@ -
+ -
+