Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-5318

Ajax search doesn't properly discard the cache

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.4.alpha
    • Component/s: None
    • Labels:
      None

      Description

      On drupal demo.

      Go to the search box in the menu top left

      Type "joh". The autocomplete contains 4 %john% contacts.

      reload the page

      Type "j" and wait until you get the autocomplete filled with %j%

      add "oh". You only have the 2 %john% that were in the initial %j%

      If you use firebug on the net tab, the query is only fired for j, but not for jo or joh

      We need to be able when returning a list limited by the server to say that they are more than the X contacts returned, and therefore it should discard the local cache and do a new query for the subsequent letters.

      P.S. I couldn't find what is the autocomplete we use, seems to be have a zillion autocomplete plugins having all the same names

        Attachments

          Activity

            People

            • Assignee:
              xavier xavier dutoit
              Reporter:
              xavier xavier dutoit
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: