毕设选题加入题库的问题

dev_course
daiao 6 years ago
parent d6326a553c
commit d10567926b

@ -223,7 +223,7 @@ class GraduationTopicsController < ApplicationController
# 已加入的更新,未加入的新建
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_property_first: topic.topic_property_first,
topic_property_second: topic.topic_property_second,
@ -234,7 +234,7 @@ class GraduationTopicsController < ApplicationController
course_list_id: @course.course_list_id)
topic_bank.attachments.destroy_all
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_property_first: topic.topic_property_first,
topic_property_second: topic.topic_property_second,

Loading…
Cancel
Save