Skip to content

Commit

Permalink
Merge pull request #5095 from rtibbles/central-develop-org-id
Browse files Browse the repository at this point in the history
Add options object to reference org_id from to ZoneSelectView in data…
  • Loading branch information
jamalex committed Apr 20, 2016
2 parents cb25c26 + 45cc3e4 commit a118a2d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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
})
});
Expand Down

0 comments on commit a118a2d

Please sign in to comment.