Skip to content
Snippets Groups Projects
Commit 2c68e6c5 authored by kaloyane's avatar kaloyane
Browse files

[LMS-2264] DataDAO should validate non-placeholder DataPE-s on creation

SVN: 21653
parent abe6ff61
No related branches found
No related tags found
No related merge requests found
...@@ -375,6 +375,11 @@ final class DataDAO extends AbstractGenericEntityWithPropertiesDAO<DataPE> imple ...@@ -375,6 +375,11 @@ final class DataDAO extends AbstractGenericEntityWithPropertiesDAO<DataPE> imple
assert dataset != null : "Unspecified data set."; assert dataset != null : "Unspecified data set.";
dataset.setCode(CodeConverter.tryToDatabase(dataset.getCode())); dataset.setCode(CodeConverter.tryToDatabase(dataset.getCode()));
if (false == dataset.isPlaceholder())
{
validatePE(dataset);
}
final HibernateTemplate template = getHibernateTemplate(); final HibernateTemplate template = getHibernateTemplate();
if (operationLog.isInfoEnabled()) if (operationLog.isInfoEnabled())
{ {
......
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