[Vtigercrm-developers] Bug in Advanced Filter vtiger 5.4.0 [fixed]
Alan Lord
alanslists at gmail.com
Tue May 26 13:55:27 GMT 2015
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 @@
> }
>
> }
More information about the vtigercrm-developers
mailing list