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

Total number of displayed external badges is incorrect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.5, 3.1.1
    • 3.0.4, 3.1
    • Badges
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • 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.

      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.

            stronk7 Eloy Lafuente (stronk7)
            stronk7 Eloy Lafuente (stronk7)
            Mark Nelson Mark Nelson
            Dan Poltawski Dan Poltawski
            Ryan Wyllie Ryan Wyllie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.