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