Description
I added a dropdown attribute with a little over 2,000 options and selected yes values for "Use in Layered Navigation" and "Use in Search Results Layered Navigation." Later, I edited the "Position" value and when I saved the attribute the layered navigation values were set to "No." If I edit the attribute again and attempt to change the layered navigation values back (or change any other values) the save appears to succeed but the values are not updated. I can't find any messages in the logs to explain why the save may have failed.
Steps to reproduce
- Add a dropdown attribute with "Use in Layered Navigation" = Filterable (With Results) and "Use in Search Results Layered Navigation" = Yes.
- Add more than 2,000 options using the REST API.
- Change the value of the "Position" value and save the attribute.
Expected result
The attribute saves successfully and no values are unexpectedly changed.
Actual result
First save:
- "Use in Layered Navigation" and "Use in Search Results Layered Navigation" are changed to No.
- Affirmative screen message: "You saved the product attribute."
- No error messages in the logs.
Later saves: - Any changed attribute values revert to what they were before the save.
- Affirmative screen message: "You saved the product attribute."
- No error messages in the logs.
Update:
I used the REST API to remove all options from the affected attribute, and this restored the ability to save edits to the attribute layered nav and position values. The bug seems to be related to having a large number of options assigned to the attribute.