Describe the bug
When exporting a collection sorted by a related model's attribute the export fails.
I have two collections "Products" and "Brands".
The relationship between them is: Product has one Brand.
On my collection view table the user is able to sort by Brand, which essentially is sorting by brand.title.
When exporting and checking "Apply filters and sort to exported data." The export fails with Error: Attribute brand[title] not found on model api::product.product
Expected behavior
I would expect the export to work and to be sorted by the related field
Describe the bug When exporting a collection sorted by a related model's attribute the export fails.
I have two collections "Products" and "Brands".
The relationship between them is: Product has one Brand. On my collection view table the user is able to sort by Brand, which essentially is sorting by brand.title.
When exporting and checking "Apply filters and sort to exported data." The export fails with
Error: Attribute brand[title] not found on model api::product.product
Expected behavior I would expect the export to work and to be sorted by the related field
Additional context Plugin version: 1.22.1 Strapi version: 4.15.5 MySql version: 8.0.33