Baboo7 / strapi-plugin-import-export-entries

Import/Export data from and to your database in just few clicks.
175 stars 86 forks source link

[BUG] Export fails when collection is sorted via a related field #159

Open jimwib opened 9 months ago

jimwib commented 9 months ago

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