From e1ca413b6f80dbb34e98553b90e43c7b4917bef9 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Tue, 18 Dec 2012 13:28:03 -0500 Subject: [PATCH] Fix import of metadata --- common/lib/xmodule/xmodule/modulestore/xml_importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/modulestore/xml_importer.py b/common/lib/xmodule/xmodule/modulestore/xml_importer.py index 1132fe77bb..bbbb60d8ed 100644 --- a/common/lib/xmodule/xmodule/modulestore/xml_importer.py +++ b/common/lib/xmodule/xmodule/modulestore/xml_importer.py @@ -147,7 +147,7 @@ def import_module_from_xml(modulestore, static_content_store, course_data_path, for field in module.fields + module.lms.fields: # Only save metadata that wasn't inherited if (field.scope == Scope.settings and - field.name in module._inherited_metadata and + field.name not in module._inherited_metadata and field.name in module._model_data): metadata[field.name] = module._model_data[field.name]