Skip to content

Commit

Permalink
#26693 include in 23.01.11
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgonzalez committed Jan 20, 2024
1 parent fb6b8b2 commit 6c84649
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ public static java.util.List getChildrenClassByConditionAndOrderBy(String p, Cla
if(c.equals(Category.class)){
throw new DotStateException("Category mapping was deleted from hibernate files");
}
if(c.equals(Folder.class)){
throw new DotStateException("Folder mapping was deleted from hibernate files");
}

try {
final String tableName = c.newInstance().getType();
Expand Down Expand Up @@ -139,9 +142,11 @@ public static Inode getInode(String x, Class c) {
throw new DotStateException("Relationship mapping was deleted from hibernate files");
}
if(c.equals(Template.class)){
throw new DotStateException("Relationship mapping was deleted from hibernate files");
throw new DotStateException("Template mapping was deleted from hibernate files");
}
if(c.equals(Folder.class)) {
throw new DotStateException("Folder mapping was deleted from hibernate files");
}



Inode inode = null;
Expand Down
5 changes: 4 additions & 1 deletion dotCMS/src/main/java/com/dotmarketing/util/InodeUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ public static Inode getInode(final String inode) throws DotDataException, DotSec
//Transform the found content type to a Structure
inodeObj = new StructureTransformer(foundContentType).asStructure();
}
} else {
}else if ( shortOpt.isPresent() && ShortType.FOLDER == shortOpt.get().subType ) {
//Folder no longer inherit from inode, returning an empty inode
inodeObj = new Inode();
} else {
inodeObj = InodeFactory.getInode(inode, Inode.class);
}
return inodeObj;
Expand Down
1 change: 1 addition & 0 deletions hotfix_tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,4 @@ This maintenance release includes the following code fixes:
154. https://github.com/dotCMS/core/issues/26439 : Relationship fields not respecting the order identifiers are sent via the workflow API #26439
155. https://github.com/dotCMS/core/issues/25233 : sysPublishDate no longer appears to be part of the ElasticSearch object we create for indexing #25233
156. https://github.com/dotCMS/core/issues/26706 : Change Default PUBSUB Provider #26706
157. https://github.com/dotCMS/core/issues/26693 : Edit Permissions Individually stuck when editing folder with legacy ID #26693

0 comments on commit 6c84649

Please sign in to comment.