Ignore:
Timestamp:
Jan 29, 2010, 2:29:26 PM (10 years ago)
Author:
gav
Message:

Add a possibleAssetSubItems function to filter sub items when editing assets.

File:
1 edited

Legend:

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

    r284 r305  
    22
    33    boolean transactional = false
     4
     5    /**
     6    * Determines and returns a possible list of asset sub items.
     7    * @returns A list of the possible assetSubItems.
     8    */
     9    def possibleAssetSubItems() {
     10        def criteria = AssetSubItem.createCriteria()
     11        def possibleAssetSubItems = criteria.list() {
     12            isNull("parentItem")
     13        }
     14    }
    415
    516    def create(params) {
Note: See TracChangeset for help on using the changeset viewer.