madcorp / zfdatagrid

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

setPaginationInterval breaks (csv-)export #802

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use $grid->setPaginationInterval(array(10 => 10, 20 => 20, 50 => 50, 100 => 
100, 500 => 500, 1000 => 1000));
2. export a grid to CSV

What is the expected output? What do you see instead?
expected:
all data is exported
instead:
the data that is exported seems to be dependent on the pagination that was set, 
sometimes it seems completely random

e.g. I have a grid with 9220 lines (and the above pagination-settings)
- 1. set pagination to 10, no filters, export result: 9220 lines (ok)
- 2. set pagination to 1000, no filters, export result: 5220 lines (??)
- 3. set pagination to 10, no filters, export result: 4230 lines (before it was 
9220 with pagination 10!)
- 4. set pagination to 100, no filters, export result: 4320 lines (+90??)
it should have been 9220 lines at all times, regardless of the pagination

Please insert the appropriate values;
                    Zend Framework version: 1.11.11
ZFDatgrid Version (Bvb_Grid::getVersion()): 0.8
                          Operating system: Linux
                               PHP Version: 5.3.6
               Database Server and version: Mysql 5
Source Adatapter:

Please provide any additional information below.
skipping setPaginationInterval when isExport() is true will fix the problem

Original issue reported on code.google.com by buegelfa...@gmail.com on 8 Dec 2011 at 1:32

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1927.

Original comment by licentia...@gmail.com on 6 May 2012 at 6:35