commit c10d79e168fe7d817cc4fce8ab1ccaafb3b3e838 Author: smarcet Date: Mon Oct 5 15:17:59 2020 -0300 Fix on filter parsing Change-Id: Icef14717e00ef981b71d5f343be7048ed82e464d Signed-off-by: smarcet diff --git a/app/Http/Utils/Filters/FilterParser.php b/app/Http/Utils/Filters/FilterParser.php index d1f2c24..2ce4086 100644 --- a/app/Http/Utils/Filters/FilterParser.php +++ b/app/Http/Utils/Filters/FilterParser.php @@ -25,7 +25,6 @@ final class FilterParser { $res = []; $matches = []; - $and_fields = []; if (!is_array($filters)) $filters = array($filters); @@ -118,10 +117,6 @@ final class FilterParser throw new FilterParserException(sprintf("%s op is not allowed for filter by field %s",$op, $field)); } - if(in_array($field, $and_fields)) - throw new FilterParserException(sprintf("filter by field %s is already on an and expression", $field)); - - $and_fields[] = $field; $f = self::buildFilter($field, $op, $value, $same_field_op); }