Skip to content
Snippets Groups Projects
Commit 14aaceee authored by buczekp's avatar buczekp
Browse files

[LMS-947] changed empty text to a text that is not a valid link because it is...

[LMS-947] changed empty text to a text that is not a valid link because it is not possible to save the same value as emtpy text value

SVN: 11533
parent 5c5caf1e
No related branches found
No related tags found
No related merge requests found
...@@ -242,7 +242,7 @@ public final class VocabularyRegistrationFieldSet extends FieldSet ...@@ -242,7 +242,7 @@ public final class VocabularyRegistrationFieldSet extends FieldSet
new VarcharField( new VarcharField(
messageProvider.getMessage(Dict.VOCABULARY_TERMS_URL_TEMPLATE), false); messageProvider.getMessage(Dict.VOCABULARY_TERMS_URL_TEMPLATE), false);
result.setAutoValidate(false); result.setAutoValidate(false);
result.setEmptyText("http://www.ebi.ac.uk/QuickGO/GTerm?id=$term$"); result.setEmptyText("for example http://www.ebi.ac.uk/QuickGO/GTerm?id=$term$");
result.setRegex(".*\\$term\\$.*"); result.setRegex(".*\\$term\\$.*");
result.getMessages().setRegexText( result.getMessages().setRegexText(
"URL template must contain '$term$', " "URL template must contain '$term$', "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment