You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where template function's internal condition check function always
returns false when a target value doesn't exist or it's nil value but
this behavior makes it difficult to filter values which doesn't have a
particular parameter.
To solve it, this adds nil value comparison to the function. where Values ".Param.key" nil like clause can be used for the case
above.
Only "=", "==", "eq", "!=", "<>", "ne" operators are allowed to be used
with nil. If an other operator is passed with nil, the condition
check function returns false like before.
No writing guideline (we need one ...), just try to follow whats already there. This is would be so useful/important that it needs its own headline, I think.
This fix is not reflected back to documentation
Fix #1232
I can update and submit PR for this. Is there any documentation writing guideline?
From http://discuss.gohugo.io/t/template-function-where-with-boolean-and-operator-with-not-set-params/1539/2
The text was updated successfully, but these errors were encountered: