madcorp / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Filter is not working on page with non zfGridParameters #881

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, 
I hope I'm just doing something wrong:

I have URI:
http://server/admin/users/show/id/62c9666d-4a2b-4e0d-a5ee-0c2d0c535fe3/

ZF:
Module: admin
Controller: users
Action: show

Parameters for this Action id/62c96......

Now I have grid on this page show orders of this user. 
When I now want to filter (autofilter) zf grind return no records even if the 
should be records. Without filters defined all records are shown...

How to tell zf datagrid to ignore some params...

Thanks

Bernhard

Original issue reported on code.google.com by Bernhard...@gmail.com on 30 Aug 2012 at 7:25

GoogleCodeExporter commented 9 years ago
Hi,

i figured it out. I use Doctrine2 as DataSource.
So my Basis-Query already included a parameter (field_1 = ?1)
So zf Datagrid added the filter "correctly" but didn't investigate previous 
parameters...
So the resulting query was WHERE (field_1 = ?1 AND field_2 = ?1) which cant 
deliver a result... 
So I changed now my parameterindex to 100... Now it works...

Bernhar

Original comment by Bernhard...@gmail.com on 31 Aug 2012 at 7:15

GoogleCodeExporter commented 9 years ago

Original comment by ivomonte...@gmail.com on 2 Dec 2012 at 1:59