Browse Source

Pending should be false when changing status

Fixing a weird state on content
1. Create and publish a content item
2. Make a pending change
3. Select "Unpublish" and the pending data is still there.

If you're unpublished, you shouldn't be able to have a pending version.
pull/326/head
Avd6977 8 years ago
committed by GitHub
parent
commit
03a6f5a99c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/Squidex.Domain.Apps.Entities/Contents/State/ContentState.cs

1
src/Squidex.Domain.Apps.Entities/Contents/State/ContentState.cs

@ -86,6 +86,7 @@ namespace Squidex.Domain.Apps.Entities.Contents.State
protected void On(ContentStatusChanged @event) protected void On(ContentStatusChanged @event)
{ {
ScheduleJob = null; ScheduleJob = null;
IsPending = false;
Status = @event.Status; Status = @event.Status;

Loading…
Cancel
Save