flag_get_user_flag_counts() summerizes flags of all anonymous users

Created on 3 April 2014, over 11 years ago
Updated 19 August 2025, 2 months ago

The flag_get_user_flag_counts() does not work correctly for anonymous users because it counts all database entries per user id. But the user id of all anonymous users is 0. For anonymous users the sid provided by session_api needs to be considered.
Patch follows ...

🐛 Bug report
Status

Closed: outdated

Version

3.0

Component

Flag core

Created by

🇩🇪Germany mkalkbrenner 🇩🇪

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024