Changeset 622 for trunk/grails-app/domain/InventoryGroup.groovy
- Timestamp:
- Jul 10, 2010, 10:48:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/InventoryGroup.groovy
r566 r622 1 import org.codehaus.groovy.grails.commons.ConfigurationHolder 2 1 3 class InventoryGroup { 2 4 String name … … 18 20 } 19 21 22 def afterUpdate = { 23 // Update the Inventory searchable index, since cascading in searchable-0.5.5 is broken. 24 if(ConfigurationHolder.config.appSearchable.cascadeOnUpdate) { 25 try { 26 InventoryIndexJob.triggerNow(['calledBy':'InventoryGroup afterUpdate{}']) 27 } 28 catch(e) {log.error e} 29 } // if 30 } // afterUpdate 31 20 32 }
Note: See TracChangeset
for help on using the changeset viewer.