Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[Data Objects] Improve Variant functionalities in object tree #4793
For variants it's not possible to duplicate or move variants inside the tree structure. The docs are stating that variants are exactly the same as objects and offer the same functions, but it turns out not everything is working exactly the same.
To make things easier for customers we would like to add variants automaticly in the second level of the variant tree. But the customer should be able to move the variant further down the tree.
Is this not a matter of DataObject\AbstractObject::OBJECT_TYPE_VARIANT being missing in a few places? I had to write a command-line script and feed it IDs and a new parent because I was being asked to move variants so often. Changing the parent ID doesn't appear to impact anything outside of inheritance, which is appropriate.