diff --git a/src/main/java/org/sigmah/server/handler/UpdateProjectHandler.java b/src/main/java/org/sigmah/server/handler/UpdateProjectHandler.java index f07bec67d..ebd8e5958 100644 --- a/src/main/java/org/sigmah/server/handler/UpdateProjectHandler.java +++ b/src/main/java/org/sigmah/server/handler/UpdateProjectHandler.java @@ -340,8 +340,20 @@ private List searchForConflicts(final Project project, final ListsingletonList(value.getTripletValue()) : null); + + final String updateSingleValue = value.getSingleValue(); + final TripletValueDTO updateListValue = value.getTripletValue(); + final Set multivaluedIdsValue = value.getMultivaluedIdsValue(); + + if (updateSingleValue != null) { + result.setValueObject(updateSingleValue); + } else if (updateListValue != null) { + result.setValuesObject(Collections.singletonList(value.getTripletValue())); + } else if (multivaluedIdsValue != null) { + result.setValueObject(ValueResultUtils.mergeElements(new ArrayList(multivaluedIdsValue))); + } else { + LOGGER.warn("Empty value event received for element #{} ({}) of container #{}.", source.getId(), source.getEntityName(), project.getId()); + } if(!source.isCorrectRequiredValue(result)) { conflicts.add(i18nServer.t(language, "conflictModifyLockedContentEmptyValue",