Active
Project:
dompdf
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2008 at 14:48 UTC
Updated:
19 Jan 2008 at 14:48 UTC
There is a problem with the formation of the query in the case of exposed views involving the OR operator.
I propose the following solution (expressed as diff, I haven't rolled a patch until you think it is the best solution):
$ diff dompdf_ori.module dompdf.module
65c67,68
< $query .= "filter$key=". $filter['filter'] ."&";
---
> $filter_value = ($filter['op'] == 'OR')?$filter['filter'][0]:$filter['filter'];
> $query .= "filter$key=". $filter_value ."&";