tpl/collections: Fix apply when function have Context as first arg
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 1 Mar 2022 10:30:11 +0000 (11:30 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 1 Mar 2022 12:18:02 +0000 (13:18 +0100)
commit376704d382df163c7a0db066900f021ea5f7894d
tree97d09299795f58a4725d94b9b288b5c6aed64d8e
parent41b5bc9637e064f6182dd37fe3077c1582614f5b
tpl/collections: Fix apply when function have Context as first arg

As introduced in `partial` and `partialCached` in Hugo 0.93.0.

Fixes #9585
common/hreflect/helpers.go
tpl/collections/apply.go
tpl/collections/apply_test.go
tpl/collections/integration_test.go [new file with mode: 0644]