[Vtigercrm-commits] [Vtiger development] #8617: greater/less than filters in 6.3

Vtiger development vtiger-tickets at trac.vtiger.com
Tue Aug 25 06:07:31 GMT 2015


#8617: greater/less than filters in 6.3
------------------------+------------------------
 Reporter:  manu        |      Owner:  developer
     Type:  defect      |     Status:  new
 Priority:  unassigned  |  Milestone:  Unassigned
Component:  vtigercrm   |    Version:  6.3.0
 Severity:  Medium      |   Keywords:
------------------------+------------------------
 in 6.3 if you set up a filter on a number field, for example leads with
 employees  greater than 10 or opportunities with value less than or equal
 to 5000 you will find that it doesn't work (try on demo.vtiger.com add a
 lead with 5 employees and one with 15 employees and set up a filter
 showing everything with more than 10 emploeyes, both will be listed).
 this is due to this code in include/QueryGenerator/QueryGenerator.php
 around line 1030:


                         } else if(in_array($field->getFieldDataType(),
 $inEqualityFieldTypes)){
                 if ($operator == 'g' || $operator == 'l') {
                     $value = substr($value, 4);
                 } else if ($operator == 'h' || $operator == 'm') {
                     $value = substr($value, 5);
                 }

 it is setting $value to be a substring of $value and as $value contains a
 number like 5000 or 10 for example, it ends up setting $value to 0.
 Commenting out the lines that change $value fixes the system.


 http://vtiger-crm.2324883.n4.nabble.com/Vtigercrm-developers-greater-less-
 than-filters-in-6-3-td17157.html

--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8617>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM


More information about the vtigercrm-commits mailing list