🇬🇧United Kingdom @jamesbisset

Account created on 14 February 2008, about 17 years ago
#

Recent comments

🇬🇧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?

🇬🇧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?

Production build 0.71.5 2024