[Vtigercrm-commits] [vtiger development] #1479: Bug in Creation of Alphabetical Search Bar

vtiger development vtiger-tickets at vtiger.fosslabs.com
Tue Jul 11 14:27:06 EDT 2006


#1479: Bug in Creation of Alphabetical Search Bar
-----------------------+----------------------------------------------------
 Reporter:  nokes      |       Owner:  developer
     Type:  defect     |      Status:  new      
 Priority:  minor      |   Milestone:  4.2.5    
Component:  vtigercrm  |     Version:  4.2.4rc3 
 Keywords:             |  
-----------------------+----------------------------------------------------
 The alphabetical search bar shows only the "Z" entry.

 This can be resolved by the following patch...



 {{{
 Index: utils.php
 ===================================================================
 --- utils.php   (revision 7956)
 +++ utils.php   (working copy)
 @@ -4253,10 +4253,11 @@
         /* world alphabets has different count of letters. Plus we can add
 "special" (multucharacter) values in alphabetical seach bar */
         $count = count($alphabetical_search_values);

 -       // building alphabetical search bar from array values
 +       // building alphabetical search bar from array values
 +    $list = '';
         for($i =0;$i<$count;$i++)
         {
 -               $list = '<td class="alphaBg"><a
 href="index.php?module='.$module.'&action='.$action.'&viewname='.$viewid.'&query='.$query.'&'.$fieldname.'='.$alphabetical_search_values[$i].$flag.$popuptypevalue.$returnvalue.$append_url.'">'.$alphabetical_search_values[$i].'</a></td>';
 +               $list .= '<td class="alphaBg"><a
 href="index.php?module='.$module.'&action='.$action.'&viewname='.$viewid.'&query='.$query.'&'.$fieldname.'='.$alphabetical_search_values[$i].$flag.$popuptypevalue.$returnvalue.$append_url.'">'.$alphabetical_search_values[$i].'</a></td>';
         }

         return $list;

 }}}

-- 
Ticket URL: <http://vtiger.fosslabs.com/cgi-bin/trac.cgi/ticket/1479>
vtiger development <http://vtiger.fosslabs.com/>
vtigerCRM


More information about the vtigercrm-commits mailing list