Commit b7d1134a by Jonathan Piacenti

Fix bug with unique IDs.

parent 6503463a
......@@ -157,7 +157,7 @@ class DragAndDropBlock(XBlock, XBlockWithSettingsMixin, ThemableXBlockMixin):
return {
"zones": self.data.get('zones', []),
# SDK doesn't supply url_name.
"url_name": getattr(object, 'url_name', ''),
"url_name": getattr(self, 'url_name', ''),
"display_zone_labels": self.data.get('displayLabels', False),
"display_zone_borders": self.data.get('displayBorders', False),
"items": items_without_answers(),
......
......@@ -10,7 +10,7 @@
"initial_feedback": "HTML <strong>Intro</strong> Feed",
"display_zone_borders": false,
"display_zone_labels": false,
"url_name": "",
"url_name": "unique_name",
"zones": [
{
......
......@@ -5,5 +5,6 @@
"show_question_header": false,
"weight": 1,
"item_background_color": "white",
"item_text_color": "#000080"
"item_text_color": "#000080",
"url_name": "unique_name"
}
......@@ -10,7 +10,7 @@
"initial_feedback": "This is the initial feedback.",
"display_zone_borders": false,
"display_zone_labels": false,
"url_name": "",
"url_name": "test",
"zones": [
{
......
......@@ -5,5 +5,6 @@
"show_question_header": true,
"weight": 1,
"item_background_color": "",
"item_text_color": ""
"item_text_color": "",
"url_name": "test"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment