unchained
unchained copied to clipboard
Assortment links out of memory error
when you try to add assortment Link, assortment Product Link or remove Assortment Product Link you get the below error.


happens on remove too
I have reproduced this by doing an infinite loop with assortment children:
- Add Assortment Test1
- Add Assortment Test2
- Go to Test1, add Test2 as Subassortment
- Go to Test2, add Test1 as Subassortment
So to fix this bug we should throw an error when somebody is trying to do this. Unchained only supports Directed Acyclic Graphs not Cyclic Graphs.
Basically, you will need to add a check and a custom error when somebody tries to add an assortment link that would end up in a cycle