missing model when saving primary group
This commit is contained in:
parent
1f044350f6
commit
6d7cb86553
|
@ -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 () {
|
||||||
|
|
Loading…
Reference in New Issue