mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
Fixed unintended save for published post on tier change
no refs - selecting a tier in post access for a published post was also triggering a save which is not intended - save should happen only for a draft post when changing tier for post access
This commit is contained in:
parent
230d99767f
commit
bb79ff7a9a
@ -148,7 +148,7 @@ export default Component.extend({
|
||||
try {
|
||||
await this.post.validate({property: 'visibility'});
|
||||
await this.post.validate({property: 'visibilityFilter'});
|
||||
if (this.post.changedAttributes().visibilityFilter) {
|
||||
if (this.post.get('isDraft') && this.post.changedAttributes().visibilityFilter) {
|
||||
await this.savePostTask.perform();
|
||||
}
|
||||
} catch (e) {
|
||||
|
Loading…
Reference in New Issue
Block a user