You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a collection with revisions enabled, the "Published" toast message is shown even then an EntrySaving listener returned false and therefore prevented the entry from actually being saved. This behaviour was fixed for non-revision entries in #9040.
How to reproduce
Fresh install, activate pro + revisions, config a collection to use revisions. Create and register an EntrySaving listener that simply returns false. Try to publish an entry that is currently unpublished.
Expected behaviour:
The publish sidebar closes and a toast appears letting me know that the entry could not be published. Nothing else changes.
Actual behaviour:
The publish sidebar closes and a toast appears letting me know that the entry was successfully published. The published indicator next to the title headline is now green. When refreshing the site, the entry is still unpublished, the indicator is grey again.
Logs
No response
Environment
EnvironmentApplication Name: StatamicLaravel Version: 10.48.11PHP Version: 8.2.19Composer Version: 2.6.6Environment: localDebug Mode: ENABLEDURL: statamic4.testMaintenance Mode: OFFCacheConfig: NOT CACHEDEvents: NOT CACHEDRoutes: NOT CACHEDViews: CACHEDDriversBroadcasting: logCache: statamicDatabase: mysqlLogs: stack / singleMail: smtpQueue: syncSession: fileStatamicAddons: 0Antlers: runtimeSites: 1Stache Watcher: EnabledStatic Caching: DisabledVersion: 4.x-dev PRO
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
The text was updated successfully, but these errors were encountered:
Bug description
In a collection with revisions enabled, the "Published" toast message is shown even then an EntrySaving listener returned false and therefore prevented the entry from actually being saved. This behaviour was fixed for non-revision entries in #9040.
How to reproduce
Fresh install, activate pro + revisions, config a collection to use revisions. Create and register an EntrySaving listener that simply returns
false
. Try to publish an entry that is currently unpublished.Expected behaviour:
The publish sidebar closes and a toast appears letting me know that the entry could not be published. Nothing else changes.
Actual behaviour:
The publish sidebar closes and a toast appears letting me know that the entry was successfully published. The published indicator next to the title headline is now green. When refreshing the site, the entry is still unpublished, the indicator is grey again.
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
The text was updated successfully, but these errors were encountered: