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

FIX Export registered methods in enabled members report #444

Merged

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented Jan 15, 2022

Issue #443

GridFieldExportButton doesn't apply formatting. I actually try fixing it that way first here before realizing this is probably bad because the exported data may included HTML link hyperlinks which will looks really bad in a csv

So I think the proper solution is don't manipulate data in a formatting function, instead just create some new 'get' methods that do the data manipulation

Also fixed some phpcs issues

@@ -153,6 +151,7 @@ public function parameterFields(): FieldList
* @param null $_
* @param Member $record
* @return string
* @deprecated use MemberExtension::getRegisteredMethodNames() instead
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to signal a version when these methods going to be removed (if at all)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May as well, have updated

@michalkleiner
Copy link
Contributor

Test failure related.

@michalkleiner michalkleiner merged commit e324d6a into silverstripe:4 Jan 16, 2022
@emteknetnz emteknetnz deleted the pulls/4/export-colummns branch January 16, 2022 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants