statamic / cms

The core Laravel CMS Composer package
https://statamic.com
Other
3.68k stars 503 forks source link

Multisite: If you delete an entry (not the origin) you see a modal with options (delete or detach) but the option delete won't delete the origin entry. #10162

Closed helloDanuk closed 3 months ago

helloDanuk commented 3 months ago

Bug description

With this example:

=> If you delete the origin entry you can choose between delete entry or detach. This works as expected.

=> If you delete the other entry you can choose between delete or detach too. But if you choose delete, the origin entry won't delete and is still in the collection view.

Bildschirmfoto 2024-05-22 um 14 22 57

How to reproduce

Logs

No response

Environment

Environment
Application Name: Statamic
Laravel Version: 11.8.0
PHP Version: 8.2.19
Composer Version: 2.7.6
Environment: local
Debug Mode: ENABLED
URL: multisite-test.test
Maintenance Mode: OFF

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

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

Statamic
Addons: 0
Sites: 2 (Statamic DE, Statamic FR)
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.4.0 PRO

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

jasonvarga commented 3 months ago

That's intended. The modal is only asking about localizations of the entry you are deleting.

origin
|- the entry you are deleting (a localization of origin)
    |- a localization of your entry (this is what it's asking about)
helloDanuk commented 3 months ago

Thanks, now I know what it means. As soon as there is more than one localization, it is obvious. With only one localization, I was confused. In this use case, the modal would not be needed when deleting the only localization, as it has no effect at all.