Global flag views field always shows up as not flagged

Created on 19 January 2022, about 3 years ago
Updated 19 February 2025, about 2 months ago

Problem/Motivation

Global flags always show up as false (i.e. not flagged) in views field.

Steps to reproduce

Add a global flag and create a list of users with a field showing the flagging status.

Proposed resolution

Can be fixed by checking by overriding the render method and checking if the result of getValue($values) !== NULL in
Plugin/views/field/FlagViewsFlaggedField

🐛 Bug report
Status

Needs work

Component

Views integration

Created by

🇵🇹Portugal HLopes

Live updates comments and jobs are added and updated live.
  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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