-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Customer export not work with custom attribute #14495
Comments
@nans, thank you for your report. |
Working on magento 2.2.7 When Choosing all customers and press on button Export -> CSV -> Export When you don't check any checkbox it gives the following issue: |
Hi @engcom-Charlie. Thank you for working on this issue.
|
Hello @nans ! |
I can reproduce the issue on Magento 2.4.1 as @nans mentioned. Steps to reproduce:
Expected result: Actual result:
Root cause: The root cause is the code at the line https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Customer/Ui/Component/Listing/Columns.php#L161. It is getting the dataType from the backend type of the attribute while in this line https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Customer/Ui/Component/ColumnFactory.php#L74 it is create new column with dataType from the frontend input of the attribute. In my case, a component is added for the I think dataType of the component should be frontend input because frontend input exists in the component types in https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Ui/view/base/ui_component/etc/definition.xml. Although we need custom code to reproduce the issue, the root cause belongs to Magento Core. |
This is still an issue in Magento 2.4.3-p1, please reopen |
* As described in the issue, it does not make sense to use the backend-type for the UI-component data type, because those do not exist necessarily * Changed it to frontend_input
Still an issue in 2.4.4-p2, I submitted a PR #36663 |
Preconditions
Version 2.0.18:
php 5.6 & 7.0;
Mysql Ver 14.14 Distrib 5.1.73;
Version 2.1.12:
php 5.6 & 7.0;
Mysql Ver 14.14 Distrib 5.1.73;
Version 2.2.3:
php 7.0 & 7.1;
Mysql Ver 14.14 Distrib 5.1.73;
Version 2.3.0-dev:
php 7.0 & 7.1;
Mysql Ver 14.14 Distrib 5.1.73;
Steps to reproduce
4.1 Do not check customer ids checkboxes and press on button Export -> CSV -> Export
Actual result: bug
Expected result: csv file with data
4.2 Select some customers and press on button Export -> CSV -> Export
Actual result: bug
Expected result: csv file with data
4.3 Choose all customers and press on button Export -> CSV -> Export
Actual result: csv file with data;
Expected result: csv file with data
Bug reports
ver. 2.0.18
ver. 2.1.12
ver. 2.2.3
ver. 2.3.0-dev
The text was updated successfully, but these errors were encountered: