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

Total number of displayed external badges is incorrect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.4, 3.1
    • Fix Version/s: 3.0.5, 3.1.1
    • Component/s: Badges
    • Labels:
    • Testing Instructions:
      Hide

      Requirement: You must have at least a couple of public collections @ https://backpack.openbadges.org each one containing some badges.

      0) In a site with badges enabled.

      1) Go to badges/mybackpack.php, connect to openbadges.org if needed and select a number of collections. Mentally, yes, you can, sum the numbers between parenthesis for the selected collections. Let's call it XX. Also, let's call YY to the number of collections. Save changes.

      2) You will be redirected to badges/mybadges.php. In the My badges from other web sites, verify that:

      • The number of displayed badges is XX.
      • The string You have XX badge(s) displayed from YY collection(s) also shows the correct XX number of badges and YY number of collections.

      3) Repeat the steps 1) and 2) picking a different number of collections. XX and YY should continue matching the new selection.
      4) Repeat the step 1) selecting NO collections. Then the string No badge collections have been selected. Add collections. is shown. No XX or YY neither badges displayed at all.

      Show
      Requirement: You must have at least a couple of public collections @ https://backpack.openbadges.org each one containing some badges. 0) In a site with badges enabled. 1) Go to badges/mybackpack.php , connect to openbadges.org if needed and select a number of collections. Mentally, yes, you can, sum the numbers between parenthesis for the selected collections. Let's call it XX. Also, let's call YY to the number of collections. Save changes. 2) You will be redirected to badges/mybadges.php . In the My badges from other web sites , verify that: The number of displayed badges is XX. The string You have XX badge(s) displayed from YY collection(s) also shows the correct XX number of badges and YY number of collections. 3) Repeat the steps 1) and 2) picking a different number of collections. XX and YY should continue matching the new selection. 4) Repeat the step 1) selecting NO collections. Then the string No badge collections have been selected. Add collections. is shown. No XX or YY neither badges displayed at all.
    • Affected Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      Was adding my last (external) awarded badge into moodle.org, when I detected that the number of total badges counted (7) was not matching the real number of badges (4).

      So, in the URL badges/mybadges.php the following string was:

      You have 7 badge(s) displayed from 2 collection(s). Change backpack settings.

      Should be, instead, to be correct:

      You have 4 badge(s) displayed from 2 collection(s). Change backpack settings.

        Attachments

          Activity

            People

            Assignee:
            stronk7 Eloy Lafuente (stronk7)
            Reporter:
            stronk7 Eloy Lafuente (stronk7)
            Peer reviewer:
            Mark Nelson
            Integrator:
            Dan Poltawski
            Tester:
            Ryan Wyllie
            Participants:
            Component watchers:
            Yuliya Bozhko, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Jul/16