Changeset 286 for trunk/grails-app/domain
- Timestamp:
- Jan 21, 2010, 4:07:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Asset.groovy
r268 r286 23 23 "${this.name}" 24 24 } 25 26 // This additional setter is used to convert the checkBoxList string 27 // of ids selected to the corresponding domain objects. 28 public void setAssetSubItemsFromCheckBoxList(ids) { 29 def idList = [] 30 ids.each() { 31 if(it.isInteger()) 32 idList << it.toInteger() 33 } 34 this.assetSubItems = idList.collect { AssetSubItem.get( it ) } 35 } 36 25 37 } 26 38
Note: See TracChangeset
for help on using the changeset viewer.