Frontend User Map: Filter by more than one FE user group not possible
I'm using the wec_map extension and its "fe user map". Everything works fine, only applying fe user groups as filter is not working.
- If i only Filter by one FE user group, it works like expected: The map only shows users which are members of the selected group.
- However if i select more than one group, the map does not show. Output is the following: It seems like there is nothing to output. Please make sure you configured the map correctly and users/markers are set.
I also tried to set the filter groups via TypoScript as mentioned in the manual. But it didn't work either:
height = 500
width = 500
showDirections = 0
prefillAddress = 1
initialMapType = G_NORMAL_MAP
controls.mapControlSize = none
controls.showOverviewMap = 0
controls.showMapType = 0
controls.showScale = 0
showSidebar = 1
userGroups = 5,4
pid = 81
If i only set one userGroup it works, but the manual says you can choose multiple.
Updated by Jan Bartels over 6 years ago
- Tracker changed from Bug to Feature
- Priority changed from Must have to Should have
The userGroups-filter works with an AND-condition, i. e. a user to be displayed has to be a member of the FE-usergroups 4 AND 5 in your example.
I'd suggest to add an additional TypoScript-property userGroupsOrMode: boolean/stdWrap, default 0.
As a workaround you can patch line 324 of pi2/class.tx_wecmap_pi2.php from
$where .= tx_wecmap_shared::listQueryFromCSV('usergroup', $userGroups, 'fe_users');
$where .= tx_wecmap_shared::listQueryFromCSV('usergroup', $userGroups, 'fe_users', 'OR' );