From 50173ca63f8087ff8a04642bf9396089eb3fa70b Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Tue, 10 May 2011 09:09:41 -0600 Subject: [PATCH] don't lookup sections by name it is not a suitable unique identifier, as evidenced by actual data Change-Id: Ib2b2f6d523b2ad052b4eff9a35c10a6e62d394c5 Reviewed-on: https://gerrit.instructure.com/3565 Tested-by: Hudson Reviewed-by: Zach Wily --- lib/sis/section_importer.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/sis/section_importer.rb b/lib/sis/section_importer.rb index 89796e4484c..47e463356b0 100644 --- a/lib/sis/section_importer.rb +++ b/lib/sis/section_importer.rb @@ -58,7 +58,6 @@ module SIS name = row['name'] section = CourseSection.find_by_root_account_id_and_sis_source_id(@root_account.id, row['section_id']) section ||= course.course_sections.find_by_sis_source_id(row['section_id']) - section ||= course.course_sections.find_by_name(name) section ||= course.course_sections.new section.root_account = @root_account # this is an easy way to load up the cache with data we already have