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

Auto complete unreliable with Ajax and only one result

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • None
    • 3.1
    • Forms Library
    • MOODLE_31_STABLE

      1. Use an auto complete that only relies on Ajax results, and does not allow multiple items
      2. Your first search result should return only 1 element, this is important. E.g. type "X" where only one items matches X.

      Expected

      • The X item shows in the suggestions

      Actual

      • The X item does not show up

      The auto complete code uses the property selected of the option tags to determine whether or not the item is currently selected. But, as the select only contains 1 element, the browse flags it as selected.

      Problem 2

      Submitting the form will submit the X item without the user's knowledge!

            damyon Damyon Wiese
            fred Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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