rapyd-laravel icon indicating copy to clipboard operation
rapyd-laravel copied to clipboard

Not all records are exported when calling DataGrid::buildCSV()

Open sroutier opened this issue 6 years ago • 0 comments

In DataGrid::buildCSV() the limit is set to null prior to calling parent::build():

...
    public function buildCSV($file = '', $timestamp = '', $sanitize = true,$del = array())
    {
        $this->limit = null;
        parent::build();
...

But in (the parent) DataSet::build() on line 186 and 229 for the section about PDOStatement and Arrays the limit is overwritten to be set to 10000:

...
                $limit = $this->limit ? $this->limit : 100000;
...

I have a fix on it's way.

sroutier avatar May 07 '18 16:05 sroutier