mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
missing model when saving primary group
This commit is contained in:
parent
1f044350f6
commit
6d7cb86553
1 changed files with 1 additions and 1 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue