Fix definition of addToFilterForm function
See merge request !21 (merged)
(cherry picked from commit 5374538c)
f284aa10 Fix definition of addToFilterForm function