Skip to content

Commit

Permalink
Merge pull request #2004 from dotCMS/issue-1970-saved-only-content-no…
Browse files Browse the repository at this point in the history
…t-saving-cats

fixes #1970
  • Loading branch information
Jason Tesser committed Feb 7, 2013
1 parent f2afda2 commit faaf3bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ protected List<Category> getParents(Categorizable child) throws DotDataException

List<String> parentIds = catCache.getParents(child);
List<Category> parents = null;
if( parentIds == null ) {
if( parentIds == null || parentIds.isEmpty() ) {
HibernateUtil hu = new HibernateUtil(Category.class);
hu.setSQLQuery("select {category.*} from inode category_1_, category, tree " +
"where tree.child = ? and tree.parent = category.inode and category_1_.inode = category.inode " +
Expand Down

0 comments on commit faaf3bc

Please sign in to comment.