Moodle

Mouse-over of Tags gives the wrong count.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9
  • Fix Version/s: 1.9.1
  • Component/s: Tags
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

Sometimes the count is correct, sometimes it isn't.

Perhaps, the number showing is how many people have added the tag, but doesn't lower the number if a student removes the tag from his profile. (Just a guess.)

If this is difficult to fix, then perhaps removing the "mouse-over" feature would be the easy solution.

Image attached.

Issue Links

Activity

Hide
Mathieu Petit-Clair added a comment -

I had a look at the code and there are two problems :

  • "related tags" tag are counted (they probably shouldn't)
  • tag instances linking to deleted users are counted (definitely a bug)
Show
Mathieu Petit-Clair added a comment - I had a look at the code and there are two problems :
  • "related tags" tag are counted (they probably shouldn't)
  • tag instances linking to deleted users are counted (definitely a bug)
Hide
Mathieu Petit-Clair added a comment -

Charles, what's your opinion on the fact that the count includes related tags? People seem split on this, over here. I don't think they should count, but I don't have a strong opinion about this...

Show
Mathieu Petit-Clair added a comment - Charles, what's your opinion on the fact that the count includes related tags? People seem split on this, over here. I don't think they should count, but I don't have a strong opinion about this...
Hide
Mathieu Petit-Clair added a comment -

Ok, I fixed the related tags thing: they can't be counted, it's confusing, because there is no clear difference in display between manually related tags and automatically correlated tags.

Show
Mathieu Petit-Clair added a comment - Ok, I fixed the related tags thing: they can't be counted, it's confusing, because there is no clear difference in display between manually related tags and automatically correlated tags.
Hide
Charles Kelly added a comment -

I agree with your change. I think you made the correct decision. Keep up the good work.

Show
Charles Kelly added a comment - I agree with your change. I think you made the correct decision. Keep up the good work.
Hide
Eloy Lafuente (stronk7) added a comment -

Hi Mathieu...

what if we close this and open a new one about the deleted users? I guess we'll need to add some upgrade code to clean those orphan tag instances?

Ciao

Show
Eloy Lafuente (stronk7) added a comment - Hi Mathieu... what if we close this and open a new one about the deleted users? I guess we'll need to add some upgrade code to clean those orphan tag instances? Ciao
Hide
Eloy Lafuente (stronk7) added a comment -

Aha, I guess MDL-13424 (discovered it about my previous comment) is the one about clean things in one upgrade step, isn't it? So, I'm marking this as resolved. Thanks!

Show
Eloy Lafuente (stronk7) added a comment - Aha, I guess MDL-13424 (discovered it about my previous comment) is the one about clean things in one upgrade step, isn't it? So, I'm marking this as resolved. Thanks!
Hide
Petr Škoda (skodak) added a comment -

code reviewed, closing

Show
Petr Škoda (skodak) added a comment - code reviewed, closing

Dates

  • Created:
    Updated:
    Resolved: