ESDEV-1338 Fix bug 0005252: Variants with the same name are not displayed in the front end (cherry picked from commit a597614)