🐛 Enhance error message for archetype create/edit tag fields #1653
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a custom error message for the min array length check of the criteria tags and archetype tags fields on the create/edit archetype form. The new error message properly handles a minimum count of 1 or >1.
Resolves: https://issues.redhat.com/browse/MTA-1945
The error message now:
![Screenshot from 2024-01-03 17-42-41](https://private-user-images.githubusercontent.com/3985964/294046366-4805dc06-836c-4371-991a-9fce97e9fb09.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMzIzOTAsIm5iZiI6MTczOTEzMjA5MCwicGF0aCI6Ii8zOTg1OTY0LzI5NDA0NjM2Ni00ODA1ZGMwNi04MzZjLTQzNzEtOTkxYS05ZmNlOTdlOWZiMDkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMjAxNDUwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDQ1MjFmYjVmYWJhZWZkMzY2MmUwZGM2MTEyNzQwZTc1NDkxZWEzYmQ1OWU2ZDdkNjk0OWM2ZDUyMjRlNTYzZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.fdjXvPk_IZ4fHPJyQtMXztMaFPQqhoHa2cOp4GNspl0)