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

[4.x] Fix metaPath for root assets #9287

Merged
merged 3 commits into from
Jan 9, 2024
Merged

Conversation

duncanmcclean
Copy link
Member

This pull request fixes an issue on the Asset class where the metaPath was returning an incorrect path for assets in the root in the asset container.

Previously, a metaPath would return ./.meta/default2023.jpg.yaml for a root asset. Now, it returns: .meta/default2023.jpg.yaml.

This will fix an issue where the ->metaExists() method would always return false for root assets.

Fixes #6870.

@@ -74,7 +74,7 @@ protected function resolveApplicationConfiguration($app)
];

foreach ($configs as $config) {
$app['config']->set("statamic.$config", require(__DIR__."/../config/{$config}.php"));
$app['config']->set("statamic.$config", require (__DIR__."/../config/{$config}.php"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unrelated to this PR. It's a new Pint thing but since it's one line I'll just let it slide. Avoids a whole PR just for one character. 🤫

@jasonvarga jasonvarga merged commit 081b6a4 into 4.x Jan 9, 2024
35 checks passed
@jasonvarga jasonvarga deleted the fix/meta-exists-on-asset branch January 9, 2024 19:32
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.

Checking for asset meta existence for root assets is always false
2 participants