[Vtigercrm-developers] Bug in Advanced Filter vtiger 5.4.0 [fixed]

Alan Lord (News) alanslists at gmail.com
Wed May 27 08:19:09 GMT 2015


Just noticed this patch is the wrong way round sorry, but I'm sure you 
get the idea...

Al

On 26/05/15 14:55, Alan Lord wrote:
> NVM Fixed it myself.
>
> Here's a patch:
>
>> --- QueryGenerator.php  2015-05-26 14:55:26.009349964 +0100
>> +++ /var/www/vtigercrm/include/QueryGenerator/QueryGenerator.php
>> 2012-04-19 17:10:05.000000000 +0100
>> @@ -207,7 +207,6 @@
>>                         $this->startGroup('');
>>                 } elseif($this->conditionInstanceCount > 0 &&
>> is_array($this->advFilterList) && count($this->advFilterList) > 0) {
>>                         $this->addConditionGlue(self::$AND);
>> -                       $this->startGroup(''); // Add extra bracket
>>                 }
>>                 if(is_array($this->advFilterList) &&
>> count($this->advFilterList) > 0) {
>>                         foreach ($this->advFilterList as
>> $groupindex=>$groupcolumns) {
>> @@ -237,9 +236,6 @@
>>                 if($this->conditionInstanceCount > 0) {
>>                         $this->endGroup();
>>                 }
>> -               if($this->conditionInstanceCount > 0 &&
>> is_array($this->advFilterList) && count($this->advFilterList) > 0) {
>> -                   $this->endGroup();
>> -               }
>>         }
>>
>>         public function getCustomViewQueryById($viewId) {
>> @@ -1049,4 +1045,4 @@
>>         }
>>
>>  }
>
>
>
>
> _______________________________________________
> http://www.vtiger.com/
>


-- 
Libertus Solutions
http://www.libertus.co.uk



More information about the vtigercrm-developers mailing list