Skip to content

Localized entries with entry class are assigned the wrong blueprint #15016

Description

@daun

Bug description

In collections using multiple blueprints as well as a custom entry class, localizing an entry assigns the wrong blueprint. The collection's default blueprint is assigned, ignoring the origin entry's blueprint.

How to reproduce

  1. Open a multisite installation
  2. Create a multisite collection, e.g. pages, with:
    • two distinct blueprints, e.g. page (default) and artist_list
    • A custom entry_class
  3. Create a new entry using the non-default blueprint (artist_list)
  4. Localize the entry via the control panel
  5. It now has the collection's default blueprint (page), not the origin's blueprint (artist_list)

Logs

Environment

EnvironmentLaravel Version: 13.20.0PHP Version: 8.4.20Composer Version: 2.8.3Environment: localDebug Mode: ENABLEDMaintenance Mode: OFFTimezone: Europe/ViennaLocale: enCacheConfig: NOT CACHEDEvents: NOT CACHEDRoutes: NOT CACHEDViews: CACHEDDriversBroadcasting: logCache: fileDatabase: sqliteLogs: stack / dailyMail: logQueue: databaseSession: fileStoragepublic/storage: NOT LINKEDStatamicAddons: 11License Key: Not setSites: 2 (DE, EN)Stache Watcher: EnabledStatic Caching: DisabledVersion: 6.24.2 PROStatamic Eloquent DriverAddon Settings: eloquentAsset Containers: fileAssets: eloquentBlueprints: fileCollection Trees: eloquentCollections: fileEntries: eloquentFieldsets: fileForm Submissions: eloquentForms: fileGlobal Sets: fileGlobal Variables: eloquentNavigation Trees: eloquentNavigations: fileRevisions: eloquentSites: fileTaxonomies: fileTerms: eloquentTokens: eloquent

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