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

[LMS-2357] minor improvements of entity information provider

SVN: 21877
parent 9239765f
No related branches found
No related tags found
No related merge requests found
......@@ -196,12 +196,12 @@ public class EntityInformationProvider implements IEntityInformationProvider
for (SamplePropertyPE property : sample.getProperties())
{
if (propertyCode.equals(property.getEntityTypePropertyType().getEntityType().getCode()))
if (propertyCode.equalsIgnoreCase(property.getEntityTypePropertyType().getEntityType()
.getCode()))
{
return property.getValue();
}
}
return null;
return "";
}
}
......@@ -55,8 +55,8 @@ public interface IEntityInformationProvider
List<String> getSampleParentPermIds(String permId);
/**
* @return value of a property with given code of a sample with given permIds, <code>null</code>
* if the property is empty
* @return value of a property with given code of a sample with given permIds, empty string if
* the property doesn't exist
*/
String getSamplePropertyValue(String permId, String propertyCode);
}
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