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

Badges code looks for removed fields on user table.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.11
    • Fix Version/s: None
    • Component/s: Badges
    • Labels:
    • Affected Branches:
      MOODLE_311_STABLE

      Description

      https://github.com/moodle/moodle/blob/MOODLE_311_STABLE/badges/criteria/award_criteria_profile.php#L194

      The line above looks in the user table to see if a badge criteria is met.

      I believe some of these columns were removed recently.

      It doesn't seem possible to create a new badge that uses the removed fields, but I'm thinking it must be possible for existing badges that were previously defined to try to access these fields, since we saw an error pointing us in this direction (specifically for the u.url field).

      Is there an upgrade step to move these badges to use the new code instead?

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            bawjaws David Scotson
            Participants:
            Component watchers:
            Yuliya Bozhko, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: