missing model when saving primary group

This commit is contained in:
Sam 2015-08-14 10:38:46 +10:00
parent 1f044350f6
commit 6d7cb86553
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ export default Ember.Controller.extend(CanCheckEmails, {
savePrimaryGroup() { savePrimaryGroup() {
const self = this; 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', type: 'PUT',
data: {primary_group_id: this.get('model.primary_group_id')} data: {primary_group_id: this.get('model.primary_group_id')}
}).then(function () { }).then(function () {