Fix incorrect selection of custom templates
Previously if multiple project templates had similar names, it was possible the wrong template were used. For example, if you had three different templates with the names:
- docker
- docker-image
- docker-image-and-app
Clicking on docker
would cause the search to match all three items,
and CreateFromTemplateService
would just pick the first one returned
from the database.
Instead of using names, this commit uses the project ID to avoid this ambiguity.
The backend support for this feature went in GitLab 12.4 via !18178 (merged). This change updates the frontend to use this.
Closes #9146 (closed)
Edited by 🤖 GitLab Bot 🤖