|
|
@ -223,7 +223,7 @@ class GraduationTopicsController < ApplicationController
|
|
|
|
|
|
|
|
|
|
|
|
# 已加入的更新,未加入的新建
|
|
|
|
# 已加入的更新,未加入的新建
|
|
|
|
if topic_bank.present?
|
|
|
|
if topic_bank.present?
|
|
|
|
topic_bank.update_attributes(name: topic, description: topic.description,
|
|
|
|
topic_bank.update_attributes(name: topic.name, description: topic.description,
|
|
|
|
topic_source: topic.topic_source,
|
|
|
|
topic_source: topic.topic_source,
|
|
|
|
topic_property_first: topic.topic_property_first,
|
|
|
|
topic_property_first: topic.topic_property_first,
|
|
|
|
topic_property_second: topic.topic_property_second,
|
|
|
|
topic_property_second: topic.topic_property_second,
|
|
|
@ -234,7 +234,7 @@ class GraduationTopicsController < ApplicationController
|
|
|
|
course_list_id: @course.course_list_id)
|
|
|
|
course_list_id: @course.course_list_id)
|
|
|
|
topic_bank.attachments.destroy_all
|
|
|
|
topic_bank.attachments.destroy_all
|
|
|
|
else
|
|
|
|
else
|
|
|
|
topic_bank = GtopicBank.new(name: topic, description: topic.description,
|
|
|
|
topic_bank = GtopicBank.new(name: topic.name, description: topic.description,
|
|
|
|
topic_source: topic.topic_source,
|
|
|
|
topic_source: topic.topic_source,
|
|
|
|
topic_property_first: topic.topic_property_first,
|
|
|
|
topic_property_first: topic.topic_property_first,
|
|
|
|
topic_property_second: topic.topic_property_second,
|
|
|
|
topic_property_second: topic.topic_property_second,
|
|
|
|