Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish status indicator doesn't update when (un)publishing an entry #1822

Closed
sauerbraten opened this issue May 12, 2020 · 6 comments
Closed
Labels

Comments

@sauerbraten
Copy link
Contributor

Bug Description

When publishing or unpublishing an entry, the updated values for its published, private and status fields are received from the server, but the relevant Vue component attributes are not updated, meaning the grey dot will not turn green after you published.

This applies to the entry edit page as well as items linked via the relationship fieldtype (i.e. the dot doesn't update after you publish them through the inline edit form).

How to Reproduce

  1. create an entry
  2. the dot left of the title will be grey
  3. publish the entry
  4. the dot left of the title will be grey
  5. reload the page
  6. the dot is now green

or

  1. link an unpublished entry using the entries fieldtype
  2. the dot left of the title will be grey
  3. click on the entry title to open the inline edit form
  4. publish the entry
  5. close the inline form
  6. the dot left of the title will be grey
  7. reload the page
  8. the dot is now green

Environment

Statamic version: cc4b3bd

@sauerbraten
Copy link
Contributor Author

We use this patch for the time being: https://pastebin.com/dU3fHJg0

It's hacky in some parts (modifying activeLocalization like this, for example), but it should point in the right direction...

@duncanmcclean
Copy link
Member

I've confirmed the issue and recorded a short Loom demonstrating the issue.

@wiebkevogel
Copy link
Contributor

wiebkevogel commented Oct 30, 2020

@jesseleite the behavior unfortunately still occurs with us.
When publishing or unpublishing an entry, the status is not updated. Still affects the status in an entry next to the title and the status within a Relationship-Fieldtype.

v.3.0.14

@duncanmcclean
Copy link
Member

duncanmcclean commented Oct 30, 2020

@WiebkeVog Could you try updating to the latest version of Statamic and try again? Currently the latest version is v3.0.22

@wiebkevogel
Copy link
Contributor

The problem also occurs with version v3.0.22

https://www.dropbox.com/s/3qi1e5xrvwz1yh2/Aufnahme.mov?dl=0

@jesseleite
Copy link
Member

Ah yes, was still broken with revisions enabled, thanks for video @WiebkeVog! Fixed in above commit.

jesseleite added a commit that referenced this issue Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants