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

from parameter doesn't work for collection tag in variable assignment #10905

Open
lukeagsmith opened this issue Oct 5, 2024 · 0 comments
Open

Comments

@lukeagsmith
Copy link

lukeagsmith commented Oct 5, 2024

Bug description

Using the from parameter when assigning the result of a collection tag to a variable causes an error.

Assignment:
{{ $my_variable = { collection from="my_collection" } }}

Error:
Modifier [from] not found

The reason not to use collection:my_collection is so the collection name can be a variable :from="collection_name"

How to reproduce

Use code above with a valid collection name

Logs

No response

Environment

Environment
Laravel Version: 11.26.0
PHP Version: 8.2.24
Composer Version: 2.7.7

Statamic
Version: 5.30.0

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant