Multi-factor authentication field in user group form shows random order

XMLWordPrintable

      1. Go to Authentication, enable LDAP settings and create a few records. Name them specifically "aaa", "bbb" and "Default" so that we are able to see the alphabetical order in the user group drop-down later.

      2. Do the same in MFA settings - create a few records and name them specifically "aaa", "bbb" and "Default" so that we are able to see the alphabetical order in the user group drop-down later.

      3. Go to User groups and see "LDAP server":
       - Default
       - aaa
       - bbb
       - Default

      The first "Default" is built-in and is show in italic making it distinguishable from our created "Default.

      4. See "Multi-factor authentication".
       - Default
       - aaa
       - bbb
       - Disabled
       - Default

      A. The order appears random.
      B. Built-in "Disabled" and "Default" are shown last. So it's already inconsistent with other drop-downs.
      C. The built-in "Default" is not in italic, so there's not telling which one is which without looking in generated HTML.

      Expected: Built-in values are always shown first in the drop-downs and sometimes use different styles. Especially in cases where user can add more of his own records and name them exactly the same. And of course the order must the somewhat logical. Meaning alphabetical order just like for the "LDAP server" field.

      Expected drop-down list for "Multi-factor authentication":
       - Disabled
       - Default
       - aaa
       - bbb
       - Default

            Assignee:
            Zabbix Development Team
            Reporter:
            Ivo Kurzemnieks
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: