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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 2.4.5
    • Restrict access
    • MOODLE_24_STABLE

      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.

            Unassigned Unassigned
            barry.matthias@remote-learner.net barry matthias
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.