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

Can not order search results by origin value in multisite #11314

Open
marcorieser opened this issue Jan 6, 2025 · 0 comments · May be fixed by #11334
Open

Can not order search results by origin value in multisite #11314

marcorieser opened this issue Jan 6, 2025 · 0 comments · May be fixed by #11334

Comments

@marcorieser
Copy link
Contributor

Bug description

Given a multisite with two sites: de (origin) and en.

I'm using the search facade and I want to order the posts collection entries by order_number and title. None of the values are localized. The ordering works for the de site because all values are present in the yaml but the order is wrong for en. The order gets correct when I localize the values (the values are written to the en yaml).

My conclusion is that orderBy() does not work for inherited/origin values.

How to reproduce

Logs

No response

Environment

Environment
Application Name: Statamic
Laravel Version: 11.37.0
PHP Version: 8.3.15
Composer Version: 2.8.3
Environment: local
Debug Mode: ENABLED
URL: statamic-search-orderby.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

Statamic
Addons: 0
Sites: 2 (German, English)
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 5.45.0 PRO

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

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