Menu

A bug in autocomplete function

Alexander
2012-07-26
2012-12-19
  • Alexander

    Alexander - 2012-07-26

    Hello! Thanks for such a great app, we are using iTop and customizing it. Today I found a bug in autocomplete function:
    I've modified a Subnet class, added location to it, chained to organization. Everything works fine when there are not many locations in org, I can choose location from select, but when there are many locations, iTop shows autocomplete function:
    I type location, choose it, but after that it disappears and is not saved!
    Could you help with this issue: is it possible to disable autocompletion or fix it?
    Thank you for great work,
    Alexander.

     
  • Denis

    Denis - 2012-07-26

    Hi lectrouser,

    The problem generaly happens when the 'label' or 'naming' of the object is inconsistent… not sure why it still happens, but basically the name returned by the autocomplete Ajax call does not match exactly what was typed/selected in the list…

    If you can you see, using Firebug for instance, what gets returned by the Ajax call you may find some differences with the object's names…

    Anyway, you cannot disable the autocomplete feature but you can adjust the minimum number of items for the autocomplete to replace a plain drop down list;

    The settings is named: "max_combo_length". So if you put a high number here (let's says 9999) you'll never see an autocomplete, unless there are more than 9999 to choose from.

    You can either, change the setting in the iTop configuration file, in which case it will affect all the autocompletes, or add an extra parameter "max_combo_length" => 9999 in the definition of the AttributeExternalKey that points to a Subnet, in which case only this particular field will be affected.

    Hope this helps,

    - Denis

     
  • Alexander

    Alexander - 2012-07-27

    Thank you! This setting helped.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.