Iterate over metadata items when setting module info

This commit is contained in:
Calen Pennington
2013-03-11 14:32:56 -04:00
parent 7e1349775c
commit 07059d0dfc

View File

@@ -74,7 +74,7 @@ def set_module_info(store, location, post_data):
# update existing metadata with submitted metadata (which can be partial)
# IMPORTANT NOTE: if the client passed pack 'null' (None) for a piece of metadata that means 'remove it'
for metadata_key in posted_metadata.keys():
for metadata_key, value in posted_metadata.items():
# let's strip out any metadata fields from the postback which have been identified as system metadata
# and therefore should not be user-editable, so we should accept them back from the client