What happened?
Description
I have 2 product types, which basically have the same fields.
On the variant index the custom fields are showing 2 times in the table columns, but 1 of them doesn't have any content of course.
And when selecting a table column to show on 1 product type, the same field will be shown on the different product type, but will always be empty

Steps to reproduce
-
create 2 product types
-
go to the variant index of a product
-
the fields of the different variant layout will be shown on both (product)variant types
-
select a field to show on the index
-
go to the other product type
-
the same field will be shown but won't hold any data
Expected behavior
Only the fields that are assigned to the product(variant) type should be visible in the table colums and when selecting a field to shown this should only be for this specific product type not for both/all
Actual behavior
All fields that are used in a variant layout are shown, and shown table columns are for all variants not just this specific type
Craft CMS version
5.2.5
Craft Commerce version
5.0.11.1
PHP version
8.3.8
Operating system and version
Ubuntu 24.04
Database type and version
mysql 8.0
Image driver and version
No response
Installed plugins and versions
No response
What happened?
Description
I have 2 product types, which basically have the same fields.
On the variant index the custom fields are showing 2 times in the table columns, but 1 of them doesn't have any content of course.
And when selecting a table column to show on 1 product type, the same field will be shown on the different product type, but will always be empty
Steps to reproduce
create 2 product types
go to the variant index of a product
the fields of the different variant layout will be shown on both (product)variant types
select a field to show on the index
go to the other product type
the same field will be shown but won't hold any data
Expected behavior
Only the fields that are assigned to the product(variant) type should be visible in the table colums and when selecting a field to shown this should only be for this specific product type not for both/all
Actual behavior
All fields that are used in a variant layout are shown, and shown table columns are for all variants not just this specific type
Craft CMS version
5.2.5
Craft Commerce version
5.0.11.1
PHP version
8.3.8
Operating system and version
Ubuntu 24.04
Database type and version
mysql 8.0
Image driver and version
No response
Installed plugins and versions
No response