WebApi.Backend: wrong return type mapping in GetProductManufacturersByProductId

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
1 anno tempo fa
I hope this is the right place for bug reports concerning the WebApi?

Version:
WebApi.Backend 4.60.03

Problem:
In the method WebApi.Backend->ProductManufacturerController-> GetProductManufacturersByProductId mapping is made to the wrong DTO-class ProductCategoryDto (instead of ProductManufacturerDto) causing an AutoMapper mapping exception when called.

Error when GetProductManufacturersByProductId  is called:
"Missing type map configuration or unsupported mapping.
Mapping types:
ProductManufacturer -> ProductCategoryDto
Nop.Core.Domain.Catalog.ProductManufacturer -> Nop.Plugin.Misc.WebApi.Backend.Dto.Catalog.ProductCategoryDto"

Solution:
Line 81: change ProductCategoryDto to ProductManufacturerDto.

1 anno tempo fa
Many thanks for the detailed description of the problem. We have fixed the inconsistency, this fix will be included in the next release of the plugin
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.