When flagging with a field entry, the global field is not saved to database.
| Comment | File | Size | Author |
|---|
Issue fork flag-3143606
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
theterencechan commentedComment #3
theterencechan commentedComment #4
tr commentedYou have to set the status to "Needs review" when you post a patch so that the test bot will test it.
Comment #5
ptmkenny commentedThis issue is a duplicate of https://www.drupal.org/project/flag/issues/2920099. I'm not sure which to close, but people should be aware of the fact that there are two different efforts to solve the same problem.
Comment #6
ptmkenny commentedComment #7
interdruper commented#3 fixes the issue.
Moreover, it fixes the side-effect error: "LogicException: The entity is not flagged by the user. in Drupal\flag\FlagService->unflag()" when a user that has permission to unflag but is not the user that flagged the entity, tries to unflag.
Comment #8
dimKarp commentedI tested #3 too and it works fine
Comment #9
ivnishNeeds reroll to MR, needs tests how it works
Comment #12
prem suthar commentedRe-rolled The Patch #3 with The MR. Please review.
Comment #13
ivnishStill needs tests
Comment #15
tr commentedComment #16
ivnishComment #17
niklp commentedThis fix works fine and desperately needs to be committed. Day and a half lost wondering why anon can add as many flaggings as they want to an item that has already been flagged.
Comment #18
joachim commentedYeah, global flags are totally broken with this link type.
Comment #21
deaom commentedCherry picked the commit from 8.x and created a new MR for 5.x with an updated test. Ready for review.
Comment #22
joachim commentedLGTM. Thanks!
Comment #23
klemendev commentedGlad to see this finally in lgtm state :)
Comment #26
ivnish