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

Conditional availability: User field 'Country' check uses 2-letter code which isn't clear

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.4.5
    • None
    • Conditional activities
    • MOODLE_24_STABLE

    Description

      If you have a condition of "Users country is equal to Mexico" this condition is not met even if the users profile states it is set to Mexico in their profile.

      This is caused because the database only stores the 2 character ISO country code so Mexico would be MX and hence the condition above would never be met.
      If however the condition was changed to "Users country is equal to MX" the condition would be met and the application would behave as expected.

      Solution, disable the users ability to enter any text in to users fields where the available entries are set to a drop down list and ensure this is applied to any is equal to conditions.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              barry.matthias@remote-learner.net barry matthias
              Sam Marshall, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: