Skip to content

Question regarding commit 45c7faf #126

@underdpt

Description

@underdpt

Hello,

I'm facing some issues that i've tracked down to this commit 45c7faf.

This commit introduces a distinction on the data that is passed to the export handler if the export handler is not exactly Yajra\DataTables\Services\DataTablesExportHandler, so data passed to a custom export handler is different from that passed to the original handler, so custom handlers are passed columns marked as not-exportable or even full related models when using eager loading on the query.

What's the motive for this change?

I think we should change the check to check if the export handler extends the default export handler with is_subclass_of so we use the same data for the default export handler and custom export handlers that extends it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions