Support nested keys/fields with missing values with the `where` function
authorAnton Harniakou <anton.harniakou@gmail.com>
Sun, 3 Feb 2019 11:03:44 +0000 (14:03 +0300)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 6 Feb 2019 18:53:34 +0000 (19:53 +0100)
commit908692fae5c5840a0db8c7dd389b59dd3b8026b9
tree8622e52ecfb3108e456af5279c1e10936955e83b
parent7e4b18c5ae409435760ebd86ff9ee3061db34a5d
Support nested keys/fields with missing values with the `where` function

Before this commit `where` would produce an error and bail building the
site. Now, `where` simply skips an element of a collection and does not
add it to the final result.

Closes #5637
Closes #5416
tpl/collections/where.go
tpl/collections/where_test.go