diff --git a/dotCMS/src/main/webapp/html/portlet/ext/contentlet/edit_contentlet.jsp b/dotCMS/src/main/webapp/html/portlet/ext/contentlet/edit_contentlet.jsp index b50951953f3a..8949875d4567 100644 --- a/dotCMS/src/main/webapp/html/portlet/ext/contentlet/edit_contentlet.jsp +++ b/dotCMS/src/main/webapp/html/portlet/ext/contentlet/edit_contentlet.jsp @@ -21,7 +21,7 @@ public boolean isNextFieldFullScreen(Structure structure, Field oldField) { try{ - ContentType type = new StructureTransformer(structure).from(); + ContentType type = APILocator.getContentTypeAPI(APILocator.systemUser()).find(structure.getInode()); com.dotcms.contenttype.model.field.Field fieldIn = LegacyFieldTransformer.from(oldField); com.dotcms.contenttype.model.field.Field field = type.fields().subList(type.fields().indexOf(fieldIn), type.fields().size()).stream().filter(f->!(f instanceof RowField || f instanceof ColumnField || f instanceof TabDividerField)).findFirst().get(); return isFullScreenField(field);