Cms: Publish status indicator doesn't update when (un)publishing an entry

Created on 12 May 2020  路  6Comments  路  Source: statamic/cms

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: https://github.com/statamic/cms/commit/cc4b3bd77921faec64af799fcfc27a4c7c6b9022

bug ui

All 6 comments

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...

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

@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

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

The problem also occurs with version v3.0.22

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

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

Was this page helpful?
0 / 5 - 0 ratings