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

Inconsistent Filename Behavior on duplicated entries in Collections with Publish Date and Multisite #11360

Open
ansovi opened this issue Jan 15, 2025 · 0 comments · May be fixed by #11361
Open

Comments

@ansovi
Copy link

ansovi commented Jan 15, 2025

Bug description

In a multisite setup with three languages (German, French, English), there is inconsistent behavior when using the duplication functionality in a collection where the publish date is enabled.

How to reproduce

  1. Set up a multisite installation with German as the default language and French and English as additional languages.
  2. Create a collection where the publish date is enabled.
  3. Create a new entry in this collection:
  • The file in the default language (German in my case) includes the date in the filename (e.g., 2025-01-15.new-entry.md).
  • The files for other languages (French, English) do not include the date in the filename (e.g., new-entry.md).
  1. Duplicate the entry within the collection:
  • For each language, a file with the full filename, including the date, is created (e.g., 2025-01-15.new-entry-1.md).
  1. Change the publish date (It's not localized so just in the default language)

Expected Behavior:
When changing the publish date in the default language, the filenames in all languages should be updated consistently.

Actual Behavior:
Only the filename of the default language (German in my case) is updated. The filenames of the other languages
remain unchanged, leading to different publish dates across languages.

Bildschirmfoto 2025-01-15 um 15 31 20

Logs

No response

Environment

Environment
Application Name: Statamic
Laravel Version: 11.38.2
PHP Version: 8.4.2
Composer Version: 2.8.4
Environment: local
Debug Mode: ENABLED
URL: localhost
Maintenance Mode: OFF
Timezone: Europe/Zurich
Locale: de

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

Drivers
Broadcasting: null
Cache: file
Database: mysql
Logs: stack / daily
Mail: smtp
Queue: sync
Session: file

Statamic
Addons: 1
Sites: 3 (Deutsch, Französisch, Englisch)
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.45.1 PRO
Statamic Version: 5.45.1

Installation

Existing Laravel app

Additional details

No response

@ansovi ansovi changed the title Inconsistent Filename Behavior on duplicates entries in Collections with Publish Date and Multisite Inconsistent Filename Behavior on duplicated entries in Collections with Publish Date and Multisite Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants