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

Allow uploading of profile picture to be used as badge criteria

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.5
    • Component/s: Badges
    • Testing Instructions:
      Hide

      Automated testing:
      1. Run behat for @core_badges or the feature "Award badges based on user profile field"

      Manual testing:

      0. NOTE This test requires a user who does not currently have a profile picture.
      1. Log in as admin
      2. Navigate to Site Administration -> Badges ->Add a new badge
      3. Create a badge named "Profile Picture"
      4. Add a criteria of "Profile completion"
      5. Select "User picture" and press save.
      6. Enable access to the badge
      7. Log out
      8. Log in as a user who does not currently have a profile picture
      9. Edit the user profile and set a profile picture
      10. View the user's profile and verify that the user was awarded the "Profile Picture" badge

      Show
      Automated testing: 1. Run behat for @core_badges or the feature "Award badges based on user profile field" Manual testing: 0. NOTE This test requires a user who does not currently have a profile picture. 1. Log in as admin 2. Navigate to Site Administration -> Badges ->Add a new badge 3. Create a badge named "Profile Picture" 4. Add a criteria of "Profile completion" 5. Select "User picture" and press save. 6. Enable access to the badge 7. Log out 8. Log in as a user who does not currently have a profile picture 9. Edit the user profile and set a profile picture 10. View the user's profile and verify that the user was awarded the "Profile Picture" badge
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-61203_m35v3

      Description

      This is part of MDL-39921

      The profile completion badge criteria allows for most of the user profile fields and custom profile fields.  The user profile picture is not one of these.  It would be useful if uploading a profile picture could be used as badge criteria.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sbourget Stephen Bourget
                Reporter:
                sbourget Stephen Bourget
                Peer reviewer:
                Sara Arjona (@sarjona)
                Integrator:
                Andrew Nicols
                Tester:
                Andrew Nicols
                Participants:
                Component watchers:
                Yuliya Bozhko, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  17/May/18