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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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
Thank you! This setting helped.