In the current implementation, the return value of Intersect is not saved. As this is a 'pure method' that returns a new collection instead of modifying the original one, the calculation of the intersection is never saved. As a result, the returned 'intersection' is simply the list of the first value.
By saving the intersection result, this is resolved and from my quick tests, the returned intersection is correct.
This issue exists in both the v7 and v8 versions. This PR is for the v7 version as that is what I was working on when I found this out.
In the current implementation, the return value of
Intersect
is not saved. As this is a 'pure method' that returns a new collection instead of modifying the original one, the calculation of the intersection is never saved. As a result, the returned 'intersection' is simply the list of the first value.By saving the intersection result, this is resolved and from my quick tests, the returned intersection is correct.
This issue exists in both the v7 and v8 versions. This PR is for the v7 version as that is what I was working on when I found this out.