Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-41309

Course tags are being incorrectly weighted (backport of MDL-39800)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.5, 2.5.1
    • Fix Version/s: 2.4.7, 2.5.3
    • Component/s: Tags
    • Labels:
    • Testing Instructions:
      Hide

      enable course tags
      create a course
      add the tag block to it
      add four different tags: fred, zoe, gamma, delta
      log on as a different user
      go to the same course and add two tags: fred and zoe
      log on as a different user
      go to the same course and add tag fred
      log on as a different user
      go to the same course and add tag fred

      Now you should have a tag cloud with fred 4 entries, zoe 2 entries, gamma 1 entry, delta 1 entry. You would expect "fred" to be biggest, then "zoe", then the other two. That's not the case though - delta and gamma are biggest.

      If you inspect the html you'll see Delta has class s20, Fred has class s80, gamma has class s20 and zoe has class s40.

      The correct html would have Fred with s20, Zoe with s10 and gamma and delta both with s5.

      Show
      enable course tags create a course add the tag block to it add four different tags: fred, zoe, gamma, delta log on as a different user go to the same course and add two tags: fred and zoe log on as a different user go to the same course and add tag fred log on as a different user go to the same course and add tag fred Now you should have a tag cloud with fred 4 entries, zoe 2 entries, gamma 1 entry, delta 1 entry. You would expect "fred" to be biggest, then "zoe", then the other two. That's not the case though - delta and gamma are biggest. If you inspect the html you'll see Delta has class s20, Fred has class s80, gamma has class s20 and zoe has class s40. The correct html would have Fred with s20, Zoe with s10 and gamma and delta both with s5.
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull from Repository:

      Description

      There are some API changes here - maybe they are so small that we can still backport this.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jenny-gray Jenny Gray
                Reporter:
                damyon Damyon Wiese
                Integrator:
                Damyon Wiese
                Tester:
                Damyon Wiese
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                3 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Nov/13