From 45cc3e4014701e1e407bd8a00192283e088e07b0 Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Wed, 20 Apr 2016 20:01:28 +0100 Subject: [PATCH] Add options object to reference org_id from to ZoneSelectView in data exports. --- .../static/js/control_panel/data_export/views.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kalite/control_panel/static/js/control_panel/data_export/views.js b/kalite/control_panel/static/js/control_panel/data_export/views.js index 102ba66e33..21a0e22d80 100644 --- a/kalite/control_panel/static/js/control_panel/data_export/views.js +++ b/kalite/control_panel/static/js/control_panel/data_export/views.js @@ -104,7 +104,7 @@ var ZoneSelectView = Backbone.View.extend({ template: require('./hbtemplates/zone-select.handlebars'), - initialize: function() { + initialize: function(options) { // Create collections this.zone_list = new Models.ZoneCollection(); @@ -117,7 +117,7 @@ var ZoneSelectView = Backbone.View.extend({ // Fetch collection by org_id this.zone_list.fetch({ data: $.param({ - "org_id": this.options.org_id, + "org_id": options.org_id, "limit": 0 }) });