Skip to content

[6.x] After restoring revisions stack doesn't close and page doesn't update #13655

@mscruse

Description

@mscruse

Bug description

Following on from #13624 (PR #13626)

When selecting a revision to restore and clicking the restore button the stack does not close. If I close manually the revision content is not shown, but if I refresh the browser it appears.

How to reproduce

  1. New statamic install - 6.x
  2. Enable revisions in config and collection.
  3. Save entry to create revision.
  4. Attempt to restore revision - click the "Restore" button.
  5. You'll see the confirmation modal - click the "Restore" button.
  6. Toast message appears saying "Revision restored".
  7. Stack remains open.

The JS error in the original bug report has gone - there are no JS errors showing.

Logs

Environment

Environment
Application Name: Statamic
Laravel Version: 12.48.1
PHP Version: 8.4.17
Composer Version: 2.9.3
Environment: local
Debug Mode: ENABLED
URL: test.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 0
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.0.0-beta.4 PRO

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions