Flagged/Unflagged message is not displayed if there are 2 or more indetical flag links on the same page.

Created on 16 March 2021, about 4 years ago

Problem/Motivation

If you have 2 or more identical flag links on the same page, then the text message after flag/unflag action is displayed only for the first flag link.
For example, you have an article detail page and you need to have the flag link at the top and at the end of the page.

🐛 Bug report
Status

Active

Component

Flag core

Created by

🇺🇦Ukraine tarazingo Kyiv

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.

  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 7.3 & MySQL 5.7
    last update almost 2 years ago
    Patch Failed to Apply
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7
    last update almost 2 years ago
    Patch Failed to Apply
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 8.1 & pgsql-10.12
    last update almost 2 years ago
    Patch Failed to Apply
  • 🇬🇧United Kingdom maseyuk

    The patch didnt' apply for beta4 so ive recreated

  • First commit to issue fork.
  • Status changed to Needs work about 2 months ago
  • ivnish Kazakhstan

    Needs reroll to MR. Also needs tests

  • 🇮🇳India ebijohnpeter

    I've encountered the issue where the "Flagged/Unflagged" message does not display correctly when there are two or more identical flag links on the same page. The patches in comment #2 and comment #5 did not apply cleanly to the current version of the module.

    I've created a new patch based on the latest dev version that resolves this issue. This patch ensures that the message displays properly even when multiple instances of the same flag are present on a single page.

    Tested on Drupal 10. Please review and let me know if any improvements are needed.

Production build 0.71.5 2024