Creating set of default labels uses false template
Summary
When a GitLab project has no labels anymore, it's possible to recreate all default labels by clicking "Create a default set of labels".
Unfortunately, the used template set of labels isn't the list of labels defined in /admin/labels
.
Steps to reproduce
Create a repository and delete all project labels. Click on "Create a default set of labels". The created labels are not the same as created by GitLab when a new repository is created.
Example Project
Does not apply.
What is the current bug behavior?
The set of created labels is different from the list of labels specified in /admin/labels
.
What is the expected correct behavior?
Create the set of labels based on the list specified in /admin/labels
.
Relevant logs and/or screenshots
Removed all labels - see blue message on top:
Output of checks
Not needed.
Results of GitLab environment info
GitLab-EE Ultimate: 10.6.4-ee
Results of GitLab application Check
Possible fixes
Use the correct set of labels to generate the set of labels in a repository.