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

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.4.5
    • Fix Version/s: None
    • Component/s: Conditional activities
    • Labels:
    • Affected Branches:
      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

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

                Dates

                Created:
                Updated: