Tools menus supports for multiple custom field values

Issue #645 duplicate
Eric Bégin created an issue

Right now, the tools' menus custom field is limited to a single value : usertype=student

It would be nice if we could set multiple values such as usertype=student1,student2

In that case, the menu would show up when usertype is either student1 or student2.

Changing adaptable/renderers.php:1612

        if ($usersvalue == $setvalue) {

with

        if (preg_match("~\b" . $usersvalue . "\b~", $setvalue)) {

should do the trick.

Comments (1)

  1. Log in to comment