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

Bug: Cannot use view filter on array values #3630

Closed
element-code opened this issue Sep 10, 2020 · 1 comment
Closed

Bug: Cannot use view filter on array values #3630

element-code opened this issue Sep 10, 2020 · 1 comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them

Comments

@element-code
Copy link
Contributor

element-code commented Sep 10, 2020

When trying to use a custom view Filter for array values nothing happens.

Affected module(s)
View\Parser

Expected behavior, and steps to reproduce if appropriate
{foo|bar} should always lead to the call of the filter bar no matter what type foo is. Right now nothing happens since $replace will not contain {foo|bar}.

@element-code element-code added the bug Verified issues on the current code behavior or pull requests that will fix them label Sep 10, 2020
@michalsn
Copy link
Member

Sorry, but Parser class is designed to work only with associative arrays. And filters work only for a single variable not array.

We are always open to a PRs though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

No branches or pull requests

2 participants