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

It should not be posible to issue a non active badge using the API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 3.6
    • Badges
    • MOODLE_36_STABLE

      Right now is posible to issue a badge that is not active and has no criteria selected using the badge API.

      If we click on 'Add new badge' on the 'Manage badges' section, fill the form and click on 'Create badge' then we have a non active badge with no criteria (yet) selected. If then we instantiate this badge with:

      $badge = new badge($badgeid);

      and we do:

      $badge->issue($userid);

      it issues the badge to the user without checking status of this badge.

            Unassigned Unassigned
            davidcarrillo David Carrillo
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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