- Issue created by @jamesbisset
- 🇬🇧United Kingdom jamesbisset
If it makes things simpler:
I have some users in a manager role. Managers are allocated a country to manage. A logged in manager can see only the users they are responsible for.
This is easily done by rejecting all users whose country does not match the logged-in user country, using a Views PHP filter.
But if a manager is allocated two or more countries, matched against the user’s country via a foreach loop, then Views PHP will only process the first user.
Does that help?
- 🇬🇧United Kingdom jamesbisset
And if I try to store the manager’s country values in a $row->php field, one value works on every user but multiple values only work on the first user.
Should this be considered a bug?