MOBILE-3230 forum: Avoid updating reply subject if it's been modified
parent
86f0db8108
commit
256c883f57
|
@ -291,8 +291,13 @@ export class AddonModForumPostComponent implements OnInit, OnDestroy {
|
|||
} else {
|
||||
// The post being replied has changed but the data will be kept.
|
||||
this.replyData.replyingTo = this.post.id;
|
||||
|
||||
if (this.replyData.subject == this.originalData.subject) {
|
||||
// Update subject only if it hadn't been modified
|
||||
this.replyData.subject = this.defaultReplySubject;
|
||||
this.originalData.subject = this.defaultReplySubject;
|
||||
}
|
||||
|
||||
this.messageControl.setValue(this.replyData.message);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue