Skip to content

Commit

Permalink
#22857 initial draft and ideas
Browse files Browse the repository at this point in the history
  • Loading branch information
jdotcms committed Aug 26, 2022
1 parent 699d6ea commit cbf6f2f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -149,7 +149,7 @@ private static void refreshBlockEditorReferences(final Contentlet contentlet) {

final Object blockEditorValue = contentlet.get(field.variable());
final Tuple2<Boolean, Object> resultOfRefresh = refreshBlockEditorValueReferences(blockEditorValue);
if (resultOfRefresh._1()) {
if (resultOfRefresh._1()) { // the block editor value has changed and has to be override

contentlet.setProperty(field.variable(), resultOfRefresh._2());
}
Expand Down Expand Up @@ -210,7 +210,7 @@ private static Tuple2<Boolean, Object> refreshBlockEditorValueReferences(final O
Logger.debug(ContentletTransformer.class, e.getMessage());
}

return Tuple.of(false, blockEditorValue); // return the original value and says didn't change
return Tuple.of(false, blockEditorValue); // return the original value and value didn't change
}

private static void refreshBlockEditorDataMap(final Map dataMap, final VersionInfo versionInfo, final Set<String> skipFieldSet) throws DotDataException, DotSecurityException {
Expand Down

0 comments on commit cbf6f2f

Please sign in to comment.