Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[6.x] Get the correct site from Statamic#173

Merged
royduin merged 2 commits into
masterfrom
Jade-GG-patch-1
Nov 14, 2025
Merged

[6.x] Get the correct site from Statamic#173
royduin merged 2 commits into
masterfrom
Jade-GG-patch-1

Conversation

@Jade-GG

@Jade-GG Jade-GG commented Nov 11, 2025

Copy link
Copy Markdown
Collaborator

To get the current site correctly you need to use Site::current() and not Site::selected(). This caused Runway to sometimes incorrectly attempt to get its content entry data from the default site, instead of the current site.

Ref: GT-2286

@Jade-GG Jade-GG changed the title [5.x] Get the correct site from Statamic [6.x] Get the correct site from Statamic Nov 11, 2025
Comment thread src/Models/Traits/HasContentEntry.php Outdated
@royduin royduin merged commit 86dce59 into master Nov 14, 2025
@royduin royduin deleted the Jade-GG-patch-1 branch November 14, 2025 09:48
@royduin

royduin commented Nov 14, 2025

Copy link
Copy Markdown
Member

Do we also need this on other branches?

@Jade-GG Jade-GG mentioned this pull request Nov 14, 2025
@Jade-GG

Jade-GG commented Nov 14, 2025

Copy link
Copy Markdown
Collaborator Author

Do we also need this on other branches?

Yes, I've created #174 for 5.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants