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

selectattr with equalto filter is not working #78

Closed
derkork opened this issue Sep 15, 2016 · 3 comments
Closed

selectattr with equalto filter is not working #78

derkork opened this issue Sep 15, 2016 · 3 comments

Comments

@derkork
Copy link
Contributor

derkork commented Sep 15, 2016

When I have a list of items and I want to filter them using selectattr like this

items | selectattr('property', 'equalto', 'fixed-value')

I'm getting the following error:

generate failed: TemplateError{severity=FATAL, reason=SYNTAX_ERROR, message=TemplateSyntaxException: com.hubspot.jinjava.interpret.InterpretException: equalto test requires 1 argument, fieldName=null, lineno=79}

But that is exactly the syntax mentioned in https://github.com/HubSpot/jinjava/blob/5e6411216131e5405af8259bfddaef61a6550ac3/src/main/java/com/hubspot/jinjava/lib/exptest/IsEqualToExpTest.java. Am I using this the wrong way or is this a bug?

@derkork
Copy link
Contributor Author

derkork commented Sep 22, 2016

Thanks a lot :)

@garfieldgroup
Copy link

I'm having this issue modifying a template in HubSpot's design manager, is there a time frame for when fixes move to the hosted platform? Documentation for the filter displays correctly, however I am receiving the error: TemplateSyntaxException: com.hubspot.jinjava.interpret.InterpretException: equalto test requires 1 argument

If this is a new issue unrelated to the above, let me know and I can open one for it.

@boulter
Copy link
Contributor

boulter commented Oct 14, 2016

@wilsbach, thanks for the reminder. The latest Jinjava is now live in HubSpot. Please give it another try.

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

3 participants