mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
missing model prefix for saving title
This commit is contained in:
parent
6d7cb86553
commit
e87ffcc457
@ -37,7 +37,7 @@ export default Ember.Controller.extend(CanCheckEmails, {
|
||||
const self = this;
|
||||
|
||||
return Discourse.ajax("/users/" + this.get('model.username').toLowerCase(), {
|
||||
data: {title: this.get('title')},
|
||||
data: {title: this.get('model.title')},
|
||||
type: 'PUT'
|
||||
}).catch(function(e) {
|
||||
bootbox.alert(I18n.t("generic_error_with_reason", {error: "http: " + e.status + " - " + e.body}));
|
||||
|
Loading…
Reference in New Issue
Block a user