missing model when saving primary group

This commit is contained in:
Sam 2015-08-14 10:38:46 +10:00
parent 1f044350f6
commit 6d7cb86553

View file

@ -65,7 +65,7 @@ export default Ember.Controller.extend(CanCheckEmails, {
savePrimaryGroup() {
const self = this;
return Discourse.ajax("/admin/users/" + this.get('id') + "/primary_group", {
return Discourse.ajax("/admin/users/" + this.get('model.id') + "/primary_group", {
type: 'PUT',
data: {primary_group_id: this.get('model.primary_group_id')}
}).then(function () {