Skip to content

Fix error thrown when using #listfilter to remove items from a list

Rye Greenwood requested to merge RyeGreenwood/ParserPower:patch-1 into master

Attempting to remove any non-empty values from a list with the {{#listfilter:}} parser function (e.g. {{#listfilter:list=1,2,3|remove=1,2}}) throws an error, which is caused by an unexpected number of arguments being passed to filterListByExclusion in listfilterRender. This is fixed by simply adding the forgotten argument.

Edited by Rye Greenwood

Merge request reports