Ignore:
Timestamp:
Jul 10, 2010, 10:48:50 PM (14 years ago)
Author:
gav
Message:

Apply bug fix for ticket #76.
Rename all instances of Lucene to Searchable.
Improved global directory config.
Add log levels for searchable plugin and compass.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/InventoryLocation.groovy

    r562 r622  
     1import org.codehaus.groovy.grails.commons.ConfigurationHolder
     2
    13class InventoryLocation {
    24
     
    2224    }
    2325
     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
    2436}
Note: See TracChangeset for help on using the changeset viewer.