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

Bug in user profile field conditions with default values.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.3.1
    • Fix Version/s: None
    • Component/s: Conditional activities
    • Labels:
    • Affected Branches:
      MOODLE_23_STABLE

      Description

      To reproduce:

      • Log in as an admin
      • Create a new Menu profile field with the following details:
        • Shortname: favouritecolour
        • Name: What is your favourite colour?
        • Required: Yes
        • Display on signup page: Yes
        • Options: Undecided, Red, Green, Blue, Yellow, Orange, Pink, Purple, Magenta, Cyan, Turquoise, Brown
        • Default: Undecided
      • Browse to a course
      • Add a forum activity called what ever you want and add the following condition:
        • User field: What is your favourite colour?
        • doesn't contain
        • Undecided
      • Save the forum and log out.
      • Log in as a student of the course.
      • Browse to the course.
      • Confirm: The activity is shown as available.
      • Go to the page to edit your profile
      • Click the save button without making any changes
      • Browse back to the course.
      • Confirm: The activity is now shown as greyed out.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samhemelryk Sam Hemelryk
              Reporter:
              samhemelryk Sam Hemelryk
              Participants:
              Component watchers:
              Sam Marshall, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: