Skip to content
Snippets Groups Projects
Commit fe8983ca authored by tpylak's avatar tpylak
Browse files

LMS-1020 minor: if vocabulary term has no label, they term display should work...

LMS-1020 minor: if vocabulary term has no label, they term display should work as it used to (it's still clear what is the code)

SVN: 11942
parent 551b4b1c
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,12 @@ public class VocabularyPropertyColRenderer<T extends IEntityPropertiesHolder> ex
{
final String code = term.getCode();
final String label = term.getLabel();
return (label != null ? label + " " : "") + "[" + code + "]";
if (label == null)
{
return code;
} else
{
return label + " [" + code + "]";
}
}
}
......@@ -82,7 +82,13 @@ public final class VocabularyTerm extends CodeWithRegistration<Vocabulary> imple
@Override
public String toString()
{
return (getLabel() != null ? getLabel() + " " : "") + "[" + getCode() + "]";
if (label == null)
{
return getCode();
} else
{
return label + " [" + getCode() + "]";
}
}
public String getUrl()
......
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