You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to add a product via a POST call to the plugin I get a validation error when the VendorId is zero.
This occurs because there is validation attribute [ValidateVendor] attached to the VendorId property of the ProductDto class. This is obviously by design, but it does not seem to match the rules of the NopCommerce site. Within the site you can create and edit a product with Vendor set to none which equates to a zero id.
I altered the ValidateVendor's Validate method to ignore the validation routine when a vendor id is zero to get around this error.
Have I got this rule wrong?
Alain
The text was updated successfully, but these errors were encountered:
Hi,
When I try to add a product via a POST call to the plugin I get a validation error when the VendorId is zero.
This occurs because there is validation attribute [ValidateVendor] attached to the VendorId property of the ProductDto class. This is obviously by design, but it does not seem to match the rules of the NopCommerce site. Within the site you can create and edit a product with Vendor set to none which equates to a zero id.
I altered the ValidateVendor's Validate method to ignore the validation routine when a vendor id is zero to get around this error.
Have I got this rule wrong?
Alain
The text was updated successfully, but these errors were encountered: