Skip to content

Commit

Permalink
fix(perf) read field list from cache, not from sql
Browse files Browse the repository at this point in the history
ref: #26840
  • Loading branch information
wezell committed Nov 29, 2023
1 parent 13c2337 commit eb0d14e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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);
Expand Down

0 comments on commit eb0d14e

Please sign in to comment.