Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SecurityAdmin-Members: GridField CSV Export - first column, no values #10662

Open
MLindenhofer opened this issue Jan 27, 2023 · 0 comments
Open

Comments

@MLindenhofer
Copy link

Affected Version

CMS Version: 4.10.0

Description

I've tried to customize the ExportColumns of the GridFieldExportButton of the SecurityAdmin for the Members gridfield with the setExportColumns()-method but regardless which DB-Field was on first position in the array the values for this column are empty in the exported CSV. It does not happen with the default or customized summary-fields! Seems to be a bug.

Steps to Reproduce

  • Create an SecurityAdmin Extension
  • fetch the Members gridfield component
  • setExportColumns
  • Export CSV

Example

$membersConfig = $form->Fields()->dataFieldByName('Members')->getConfig();
$btn =  $membersConfig->getComponentByType(GridFieldExportButton::class);
$btn->setExportColumns([
    'FirstName'
    'Surname',
    'Email',
    'Phone',
    'PhoneDirectDial'
]);

Screenshot:
Bildschirmfoto 2023-01-27 um 10 53 43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants