Changeset 622 for trunk/grails-app/domain
- Timestamp:
- Jul 10, 2010, 10:48:50 PM (14 years ago)
- Location:
- trunk/grails-app/domain
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Asset.groovy
r562 r622 1 import org.codehaus.groovy.grails.commons.ConfigurationHolder 2 1 3 class Asset { 2 4 … … 35 37 } 36 38 39 def afterUpdate = { 40 // Update the Inventory searchable index, since cascading in searchable-0.5.5 is broken. 41 if(ConfigurationHolder.config.appSearchable.cascadeOnUpdate) { 42 try { 43 InventoryIndexJob.triggerNow(['calledBy':'Asset afterUpdate{}']) 44 } 45 catch(e) {log.error e} 46 } // if 47 } // afterUpdate 48 37 49 // This additional setter is used to convert the checkBoxList string or string array 38 50 // of ids selected to the corresponding domain objects. -
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 } -
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.