Ignore:
Timestamp:
Feb 12, 2010, 12:14:23 PM (10 years ago)
Author:
gav
Message:

Added some checks to prevent recurrsion loops in Asset tree.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/AssetService.groovy

    r350 r352  
    1212        def criteria = AssetSubItem.createCriteria()
    1313        def possibleAssetSubItems = criteria.list() {
    14             isNull("parentItem")
     14            and {
     15                eq('isActive', true)
     16                isNull("parentItem")
     17                }
    1518        }
    1619    }
Note: See TracChangeset for help on using the changeset viewer.