Magento-RestApi icon indicating copy to clipboard operation
Magento-RestApi copied to clipboard

Product Attributes not populating

Open ghost opened this issue 8 years ago • 2 comments

Tried to update to 1.0.4 but the Product.Attributes array does not populate for me. Has attribute handling changed?

ghost avatar Sep 21 '16 23:09 ghost

I got the same error and found the problem. Product.StartTracking method inits the dictionary of attributes after inserting all the values in it, meaning the dictionary of attributes is always empty.

NotAndD avatar Jan 16 '17 09:01 NotAndD

Could this be a fix?

public override void StartTracking() { Attributes = Attributes ?? new Dictionary<string, string>(); ...

arigeo avatar Apr 03 '18 07:04 arigeo