fix in location id for course

This commit is contained in:
Alexander Kryklia
2013-01-03 17:36:57 +02:00
parent f283df9022
commit aaf54c562e

View File

@@ -873,7 +873,7 @@ class DragAndDropInput(InputTypeBase):
self.to_render.add('drag_and_drop_json')
try: # for tests and mock up, work normally not in tets
self.loaded_attributes['course_folder'] = \
self.system.course_id.split('/')[1]
self.system.location.split('/')[3]
except:
self.loaded_attributes['course_folder'] = 'mock'
self.to_render.add('course_folder')