Skip to content
Snippets Groups Projects
Commit 65efc03b authored by Giovanne Marcelo's avatar Giovanne Marcelo
Browse files

Fixing small bug

parent 864e5773
No related branches found
No related tags found
No related merge requests found
......@@ -20,8 +20,11 @@ class TopicsImporter
if !topic_exists? topic_name
topic = Topic.where(name: topic_name).new
elsif @@topics[topic_name].nil?
topic = Topic.find_by_name topic_name
end
create_relations(topic_name)
learning_object.topics << topic
@@topics[topic_name] = topic
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment