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

Badges code looks for removed fields on user table.

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.11
    • None
    • Badges
    • 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

            Unassigned Unassigned
            bawjaws David Scotson
            Yuliya Bozhko, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: