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

User profile field conditions missing a "is not empty" option.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4
    • Component/s: Conditional activities
    • Labels:
      None
    • Testing Instructions:
      Hide
      1. Log in as an admin
      2. Enable conditional activities if you haven't already.
      3. Enter a course and enable conditional activities.
      4. Add a new forum and in the settings:
        • Check that you can add user conditions and that all the conditions strings are fine (equals, is empty, contains etc).
        • Check you see an "is not empty" option
      5. Set a single new user condition for the "Yahoo ID" field and set the condition to "is not empty"
      6. Log out and back in as a student.
      7. Make sure the user hasn't got a yahoo id set (who would right!)
      8. Browse to the course
      9. Make sure the forum is shown as inaccessible with a message about yahoo id being empty.
      Show
      Log in as an admin Enable conditional activities if you haven't already. Enter a course and enable conditional activities. Add a new forum and in the settings: Check that you can add user conditions and that all the conditions strings are fine (equals, is empty, contains etc). Check you see an "is not empty" option Set a single new user condition for the "Yahoo ID" field and set the condition to "is not empty" Log out and back in as a student. Make sure the user hasn't got a yahoo id set (who would right!) Browse to the course Make sure the forum is shown as inaccessible with a message about yahoo id being empty.
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull Master Branch:
      wip-MDL-34285-m24

      Description

      The user profile field conditions are all in order but there is one obvious candidate missing "is not empty"
      Should be a simple change but will involve a new string and the checking of old strings.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  3/Dec/12